简体   繁体   English

我在哪里在新窗口中放置代码

[英]where do i put the code for a new window

I cannot seem to remove the whitespace on the side of the footer as shown in the image. 如图所示,我似乎无法删除页脚侧面的空白。 I tried width:100%; 我尝试宽度:100%; and almost every method online after i googled. 谷歌搜索后几乎所有在线方法。 here is the footer's html and css 这是页脚的html和CSS

 .container { padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; margin-bottom: 0px; width: 100%; } .footer{ background:url(../images/pw_maze_black_2X.png) left top repeat; width: 100%; padding-left: 0px; padding-right: 0px; } .footer-logo{ margin:15px auto 35px; width: 76px; } .copyright{ color:#cccccc; font-size:14px; display:block; text-align:center; } .copyright a{ color:#7cc576; font-weight:600; text-decoration: none; transition:all 0.3s ease-in-out; -moz-transition:all 0.3s ease-in-out; -webkit-transition:all 0.3s ease-in-out; } .copyright a:hover { color: #fff; } 
 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.js"></script> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <footer class="footer"> <div class="container"> <div class="footer-logo"><a href="#"><img src="images/footer-logo.png" alt=""></a></div> <span class="copyright">Copyright © 2015 | <a href="http://bootstraptaste.com/">Bootstrap Themes</a> by BootstrapTaste</span> </div> </footer> 

anything else i can try? 我还能尝试什么吗?

Is this what you want? 这是你想要的吗?

    .container {
  padding-right: 0px;
  padding-left: 0px;
  margin-right: auto;
     margin-left: auto;
  margin-bottom: 0px;
  width: 100%;
}
.footer{
    background:url(../images/pw_maze_black_2X.png) left top repeat;
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;

}
.footer-logo{
    margin:0px auto;
    width: 76px;
}
.copyright{
    color:#cccccc;
    font-size:14px;
    display:block;
    text-align:center;
}
.copyright a{
    color:#7cc576;
    font-weight:600;
    text-decoration: none;
    transition:all 0.3s ease-in-out;
    -moz-transition:all 0.3s ease-in-out;
    -webkit-transition:all 0.3s ease-in-out;
}

.copyright a:hover {
    color: #fff;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM