我有一个页面,需要在表中显示边框,并且使用w3.css,它有以下内容:
table,th,td{border:none}我有自己的css文件,并尝试过:
table,th,td{border:1 !important}不管有没有“!重要”,在做了一些搜索之后,我也尝试过:
$("table").removeAttr('style').css("border","1");
$("th").removeAttr('style').css("border","1");
$("td").removeAttr('style').css("border","1");我已经在.table,.th,.td上试过了,也尝试过"1px“。
我知道我可以通过移除边框设置来更改w3.css,而且它工作得很好,但是,我不喜欢这样做。
发布于 2016-03-03 22:44:39
border是border-type、border-width和border-color的简写属性。你需要这三个属性。
table {
border: 1px solid #000;
}https://stackoverflow.com/questions/35784531
复制相似问题