【问题标题】:Why is my red background not displaying in my table?为什么我的红色背景没有显示在我的表格中?
【发布时间】:2012-05-02 20:23:22
【问题描述】:

我这里有一个模型

http://jsfiddle.net/Q77RZ/

没有引导程序一切正常。如何覆盖引导设置?

【问题讨论】:

    标签: html css twitter-bootstrap


    【解决方案1】:

    你只需要让它更具体一点:

    table.table tbody td.red-background {
        color: black;
        background-color: red;
        font-size: 30px; 
    }​
    

    Demo here.

    【讨论】:

    【解决方案2】:

    只需更改该 css 规则的重要性,使其不会被覆盖。

    .red-background {
      color: black;
      background-color: red !important;
      font-size: 30px;
    }
    

    演示:http://jsfiddle.net/Q77RZ/4/

    【讨论】:

      猜你喜欢
      • 2011-09-28
      • 1970-01-01
      • 2017-11-09
      • 2013-07-17
      • 2017-07-27
      • 2015-06-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多