2016-05-29 37 views
-1

我无法使页面滚动。该代码是:我无法使用css滚动我的页面

body{ 
overflow-y: scroll; 
margin: 0px; 
padding: 0px; 
} 

#triangle-down { width: 0px; height: 0px; 
border-left: 200px solid transparent; 
border-right:200px solid transparent; 
border-top: 230px solid white; 
margin-left: 475px; 
position:fixed;; 
top: 65px; 
z-index: -1; 
    } 
div.topName { 
    margin-bottom:6px; 
    margin-left: 615px; 
    position: relative; 
    z-index:1; 

} 

body { 
background-image: url("pictures/UHT_Plovdiv.png"); 
background-size: cover; 
width: 50%; 
background-color:0099CC; 
} 
div.boxwhitetop { 
solid white ; 
background-color: white; 
width: 1200px; 
height: 50px; 
border-radius: 30px; 
position: relative; 
margin-left: 80px; 
} 
divMainbox{ 
border-radius: 35px; 
background: white; 
top: 7px; 
left: -525px; 
width: 1050px; 
height: 1000px; 
position:absolute; 
text-align: center; 
font-size: 25px; 
overflow: hidden; 
-webkit-animation: fadein 4.5s; /* Safari, Chrome and Opera > 12.1 */ 
-moz-animation: fadein 4.5s; /* Firefox < 16 */ 
-ms-animation: fadein 4.5s; /* Internet Explorer */ 
-o-animation: fadein 4.5s; /* Opera < 12.1 */ 
animation: fadein 4.5s; 
overflow:hidden; 
} 

我github上的链接是https://github.com/nedzone/uht-yniversitet,请告诉我,我的问题是,我该如何解决这个问题?

回答

0

闭上你的div中的行号23 nachalna stanica.html,该网页将开始滚动

<div id="triangle-down"></div> 
+0

THANK YOU VERRY MUCH是这样的话! –

+0

请upvote并标记为正确@NedkoBoqnov –

0

如果一切都在divMainbox中,那么你不应该有一个高度。否则,它将不允许该容器根据内部内容的大小来调整大小。否则,如果您确实需要该容器的特定高度,则应该添加overflow-y: scroll;而不是现在的overflow: hidden;。这可以让你的容器有高度,但也允许用户在它内滚动。也许这是你遇到的麻烦。