nền css 100% chiều rộng cuộn ngang số phát hành
Tôi đang gặp phải vấn đề này khi tôi cuộn cửa sổ sang ngang rồi ngắt chân trang và đầu trang.
Xin giúp với CSS
Bạn có thể kiểm tra các bản demo sống ở đây http://yeszindagi.com/
body {
font-family: Arial, Helvetica, sans-serif;
font-size:1.3em;
min-height:100%;
}
.containerMain {
min-height:100%;
width: 100%;
}
.full {
width:100%;
}
.fixed {
width:900px;
}
.footer {
border-top:1px dashed #000;
margin-top:5px;
height:50px;
background-color:#F7B200;
bottom:0px;
position:relative;
}
----------------------- ----- HTML CODE ----------------------------------------
<div class="containerMain">
....
.....
.........
<div class="full footer clear ">
<div class="fixed center">
<div class="left">
<ul class="links">
<li><a href="#">Contact</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="social right">
<a href="#" target="_blank" title="Facebook"><span class="facebook-mini"></span></a>
<a href="#" target="_blank"><span class="twitter-mini" title="Twitter"></span></a>
<a href="#" target="_blank"><span class="pinterest-mini" title="Youtube"></span></a>
<a href="#" target="_blank"><span class="linkedin-mini" title="Linkedin"></span></a>
</div>
</div>
</div>
</div>
Đó là bởi vì chiều rộng 100% là chiều rộng của cửa sổ, không phải là tài liệu thực tế – user2067005
nội dung {overflow-x: hidden;} –