覆盖CSS表格式 [英] Override CSS table formatting
本文介绍了覆盖CSS表格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用以下CSS将顶部边框应用到各个表的最后一个子行:
.mytabs tr :last-child {
border-top:1px solid#000;
font-weight:bold;}
现在我需要做的是覆盖风格为一个特定的表。如何在一个特定实例中覆盖此样式?感谢。
解决方案
您可以包装自定义div id名称示例< div id =customFormat >< / div>
或给表格一个id < table id =customFormat>< / table>
/ p>
在CSS中,您只能为该表指定自定义样式。
#customFormat {
border-bottom:1px solid rgba(69,54,37,0.2);
}
I use the following CSS to apply a top border to the last-child row of various tables:
.mytabs tr:last-child {
border-top:1px solid #000;
font-weight:bold;}
Now what I need to do is to override this style for one particular table. How can I override this style in one specific instance? Thanks.
解决方案
You can wrap it a custom div id name example <div id="customFormat"></div>
or give the table an id <table id="customFormat"></table>
In CSS, you can specify the custom styling just for that 1 table.
#customFormat {
border-bottom: 1px solid rgba(69,54,37,0.2);
}
这篇关于覆盖CSS表格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文