Bootstrap背景颜色

时间:2015-11-26 18:14:27

标签: html css twitter-bootstrap

我正在学习Bootstrap。我正在制作一个主题。但是在页面的底部,我在页脚标记处添加了页脚背景颜色,但它没有改变。并且还注意到页脚标记的class属性没有显示在firebug inspect元素中。有什么问题?请帮忙。

.page-footer {
  background: red;
  margin: 0;
  padding: 0;
  clear: both;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<!---page footer------>
<footer class="text-center page-footer">
  <a class="up-arrow" href="#myPage" data-toggle="tooltip" title="TO TOP">
    <span class="glyphicon glyphicon-chevron-up"></span>
  </a>
  <br>
  <br>
  <p>Bootstrap Theme Made By <a href="#">A-B-C Company</a>
  </p>
</footer>

1 个答案:

答案 0 :(得分:1)

尝试更改:

background: red !important;

代表

background-color: red !important;

我没有看到任何麻烦,这里是工作示例的小提琴:

Fiddle