我正在网站上工作,滚动到Android移动设备上的about部分不起作用。我被某些东西限制,我不知道是什么。我已经搜索了溢出希望找到解决方案,但所有建议都没有奏效。这是我的测试网站链接:Testing Website
这是主要的CSS:
html
{
overflow: scroll;
}
/*PARALLAX CSS */
.paral
{
min-height: 600px;
background-attachment: fixed;
background-size: cover;
background-position: 50% 50%;
width: 100%;
height:100vh;
}
.paral-about
{
min-height: 100px;
background-attachment: fixed;
background-position: 50% 50%;
width: 200vw;
height: 20vh;
background-image: url(images/about_image.jpeg);
}
.paral p
{
font-size: 4vh;
color:white;
text-align: center;
}
.paral h1
{
color: white;
font-size: 8vh;
text-align: center;
padding-top: 40px;
word-wrap:normal;
}
.paral strong
{
color:skyblue;
}
.paral-padded
{
padding-top: 20vh;;
}
.paral-home-setting
{
width: 45vw;
}
/*Image for Parallax Section */
.paralhome
{
background-image:url(images/home_image.jpeg);
background-size: cover;
}
.paralabout
{
background-color: black;
}
.paralservice
{
background-color: blue;
}
.paralpricing
{
background-color: purple;
}
.paralcontact
{
background-color: magenta;
}
/*JUMBOTRON*/
.jumbotron
{
margin-bottom: 0;
}
/*NAVIGATIONAL CSS*/
.nav-right
{
padding-right: 10vw;
}
.nav-left
{
padding-left: 10vw;
}
.nav-text-font
{
font-family: 'Exo 2', sans-serif;
}
/*Homepage Button CSS */
.btn-home-margin
{
margin-top:20px;
width:200px;
}
/*Other Stationary Rules*/
.normalized-padding
{
padding-top: 20px;
}
这是媒体查询CSS:
/*For Regular Laptops*/
@media screen and (max-width:1440px)
{
body
{
}
.paral
{
min-height: 60vh;
background-attachment: fixed;
background-size: cover;
background-position: 50% 50%;
width: 100%;
height:100vh;
}
.paral-padded
{
padding-top: 12vh;;
}
.paral h1
{
color: white;
font-size: 5vw;
text-align: center;
padding-top: 4vh;
word-wrap:normal;
}
.paral p
{
font-size: 4vh;
color:white;
text-align: center;
}
.paral-home-setting
{
width: 60vw;
}
.btn-home-margin
{
margin-top:6vh;
width:43vh;
font-size: 3vw;
}
.nav-right
{
padding-right: 10vw;
font-size: 1.5vw
}
.nav-left
{
padding-left: 10vw;
font-size: 1.8vw
}
}
/*For Larger Tablets*/
@media screen and (max-width:1024px)
{
body
{
}
.paral
{
min-height: 60vh;
background-attachment: fixed;
background-size: cover;
background-position: 50% 50%;
width: 100%;
height:100vh;
}
.paral-padded
{
padding-top: 12vh;;
}
.paral h1
{
color: white;
font-size: 6vw;
text-align: center;
padding-top: 4vh;
word-wrap:normal;
}
.paral p
{
font-size: 4vh;
color:white;
text-align: center;
}
.paral-home-setting
{
width: 60vw;
}
.btn-home-margin
{
margin-top:5vh;
width:30vh;
font-size: 4vw;
}
.nav-right
{
padding-right: 10vw;
font-size: 20px;
}
.nav-left
{
padding-left: 10vw;
font-size:22px;
}
}
/*For Regular Tablets*/
@media screen and (max-width:768px)
{
body
{
}
.paral
{
min-height: 60vh;
background-attachment: fixed;
background-size: cover;
background-position: 50% 50%;
width: 100%;
height:100vh;
}
.paral-padded
{
padding-top: 12vh;;
}
.paral h1
{
color: white;
font-size: 8vw;
text-align: center;
padding-top: 4vh;
word-wrap:normal;
}
.paral p
{
font-size: 4vh;
color:white;
text-align: center;
}
.paral-home-setting
{
width: 70vw;
}
.btn-home-margin
{
margin-top:5vh;
width:40vh;
font-size: 6vw;
}
.nav-right
{
padding-right: 10vw;
font-size: 20px;
}
.nav-left
{
padding-left: 10vw;
font-size:22px;
}
}
/*For Regular Smartphones*/
@media screen and (max-width:420px)
{
body
{
}
.paral
{
min-height: 60vh;
background-attachment: fixed;
background-size: cover;
background-position: 50% 50%;
width: 100%;
height:100vh;
}
.paral-padded
{
padding-top: 12vh;;
}
.paral h1
{
color: white;
font-size: 9vw;
text-align: center;
padding-top: 4vh;
word-wrap:normal;
}
.paral p
{
font-size: 4vh;
color:white;
text-align: center;
}
.paral-home-setting
{
width: 80vw;
}
.btn-home-margin
{
margin-top:6vh;
width:30vh;
font-size: 6vw;
}
.nav-right
{
padding-right: 10vw;
font-size: 20px;
}
.nav-left
{
padding-left: 10vw;
font-size:22px;
}
}
/*For Older Smartphones*/
@media screen and (max-width:420px)
{
body
{
}
.paral
{
min-height: 60vh;
background-attachment: fixed;
background-size: cover;
background-position: 50% 50%;
width: 100%;
height:100vh;
}
.paral-padded
{
padding-top: 14vh;;
}
.paral h1
{
color: white;
font-size: 9.5vw;
text-align: center;
padding-top: 4vh;
word-wrap:normal;
}
.paral p
{
font-size: 4vh;
color:white;
text-align: center;
}
.paral-home-setting
{
width: 85vw;
}
.btn-home-margin
{
margin-top:4vh;
width:32vh;
font-size: 5vw;
}
.nav-right
{
padding-right: 10vw;
font-size: 20px;
}
.nav-left
{
padding-left: 10vw;
font-size:22px;
}
}
我一点也不明白为什么会出现这个问题。我尝试过overflow-y:scroll;这不起作用(我把这些代码放在CSS和mediacss的两个部分。任何建议都会非常感激!谢谢!