custom css being overridden by bootstrap css

前端 未结 8 1681
不思量自难忘°
不思量自难忘° 2020-12-02 23:33

I am using Bootstrap 3 and I have a table showing some data. in this table I have applied some javascript for conditional formatting, in the event that a condition is met, I

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 00:07

    You can add !important after each style in the .red class. Adding !important basically will give the CSS more weight which allows you to override other styles.

    Your css would look like:

    .red {
        background-color: red !important;
        color: white !important;
    }
    

提交回复
热议问题