该页面是http://conmifianza.com。当您调整页面大小时,水平滚动条不会出现。为什么我的网站在重新调整大小时不显示水平滚动条?
的CSS:
@charset "utf-8";
/* CSS Document */
html,body,div,span,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,q,s,strong,sub,sup,tt,var,b,u,i,center,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,footer,header,menu,section{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}
.clearfix:after {
visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0;
}
* html .clearfix { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */
html{
height:100%;
}
body{
color: white;
font-family: nexa_regular;
margin:0px;
padding:0px;
background:url("../img/fondo.jpg") transparent no-repeat;
-webkit-background-size:cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size:cover;
height:100%;
}
.All{
width:100%;
height:auto;
min-height:100%;
position:relative;
}
.Head{
position:relative;
width: 1001px;
height:120px;
margin: 40px auto 33px;
margin-bottom:0px;
margin-top:.7%;
/*background-color:#00F;*/
}
#Logo{
width:120px;
height:120px;
float:left;
/*background-color:#090;*/
}
#content{
position: relative;
width: 1000px;
margin: 40px auto 33px;
margin-top:.7%;
margin-bottom:10px;
overflow:hidden;
}
#titulo{
position: absolute;
right: 0px;
bottom: 0px;
width: 384px;
height: auto;
font-size:21px;
text-align:right;
color:red;
}
#contbody{
width: 100%;
height: 355px;
position: relative;
overflow:hidden;
font-family:calibri;
}
#cont_slider{
position:relative;
width:100%;
height:355px;
overflow:hidden;
}
/*.somos{
background-image:url(../img/quienessomos/banner_01.jpg);
background-position: 50% 50%;
background-repeat: no-repeat no-repeat;
}*/
#image1{
position:absolute;
background-color:rgba(255,255,255,.7);
top:39px;
left:20px;
width:200px;
height:100px;
z-index:999;
}
#contfoot{
position:relative;
width: 100%;
height: 145px;
padding-bottom:30px;
}
#menu{
width: 100%;
height: 145px;
position: relative;
/*background: url('') transparent center no-repeat;*/
border:none;
}
#socmed{
width: 24px;
height: 58px;
position: absolute;
right: -30px;
bottom: 0px;
/*background: url('') transparent center no-repeat;*/
}
.menuitem{
overflow:hidden;
width: 125px;
height: 145px;
float: left;
cursor: pointer;
}
我会避免使用w3schools作为参考;他们经常得到很多错误的东西。有关原因,请参阅[w3fools](http://www.w3fools.com/),并使用类似[Mozilla开发者网络](https://developer.mozilla.org/en-US/)的替代方法。 – TylerH
我明白了,我并没有声称这个具体的上下文是不正确的。我建议你提供一个不同的,更好的来源,因为如果这是Travis或其他人看到的第一个来源,他们可能会很快养成使用它作为其主要来源的习惯,这对于学校来说会很糟糕。直到w3schools开始认真对待准确性(和其他问题)之前,它不应该乐意散布在像这样的网站上,这会尝试作为编码问答的完整参考。 – TylerH