在我的网站上,右边有不需要的白边,我不知道为什么。我网站上的所有容器都包含流体,并且我还添加到了我的CSS中,没有填充,容器没有边距。Css不需要的右边距,粘脚未固定
html,
page {
width: 100%!important;
margin:0;
font-family: "Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;
padding-right:0px;
padding-left:0px;
color:#333;
}
container, container-fluid {
width:100%0!important;
padding:0!important;
margin:0!important;
}
我想放在页脚在现场的时候,我试图与位置:绝对和边距,还试图隐藏溢出,但它并没有为我工作。
<div class="navbar navbar-inverse navbottom">
.navbottom {
background: url(../img/footer.jpg) no-repeat center center scroll;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
background-color:#679003;
-moz-border-radius:0px;
border-radius: 0px;
border-style: none;
position: relative;
margin-top: -50px; /* negative value of footer height */
height: 50px;
clear:both;
padding-top:20px;
overflow:hidden;
margin-bottom:0!important;
全HTML和CSS https://jsbin.com/biwuyewipi/edit?html,css,output