首页 > bootstrap样式问题

bootstrap样式问题

怎样可以将bootstrap表格中每一行的border-bottom设置为:none?


自己写样式啊

tbody > tr > td {
    border-bottom: none;
}

tbody > tr > td {

border-bottom: none;!important

}

用⬆️覆盖原先样式表即可


重新定义一个类样式 加上!important


1、可以用class给他重新添加样式 比如
table .no-border{
border-bottom: none;
}
这里注意下比较具体的选择器会覆盖之前的样式或者直接添加!important也可以
2、
tbody > tr {

border-bottom: none !important;

}
tbody > tr > td {

border-bottom: none !important;

}

【热门文章】
【热门文章】