2016-05-29 10 views
-1

Ich kann meine Seite nicht scrollbar machen. Der Code ist:Ich kann meine Seite nicht scrollbar machen mit 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; 
} 

Mein Github Link https://github.com/nedzone/uht-yniversitet ist, bitte sagen Sie mir, wo mein Problem ist, und wie kann ich dieses Problem beheben?

Antwort

0

Schließen Sie die div in Zeilennummer 23 in nachalna stanica.html, wird die Seite starten

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

Sie, dass VERRY VIEL THANK blättern DER FALL WAR !! –

+0

bitte upvote und markieren Sie als @NedkoBoqnov –

0

Wenn alles in der divMainbox läuft, sollten Sie keine Höhe haben. Andernfalls wird die Größenänderung dieses Containers basierend auf der Größe des Inhalts nicht zugelassen. Andernfalls, wenn Sie eine bestimmte Höhe auf diesem Container möchten, sollten Sie eine overflow-y: scroll; anstelle der overflow: hidden; hinzufügen, die Sie jetzt haben. Dies würde Ihnen ermöglichen, dass der Container Höhe hat, aber auch dem Benutzer erlauben, darin zu scrollen. Vielleicht ist dies das Problem, das du hast.