bootstrap样式问题

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

阅读 4.5k
4 个回答

自己写样式啊

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

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

border-bottom: none !important;

}
tbody > tr > td {

border-bottom: none !important;

}

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

tbody > tr > td {

border-bottom: none;!important

}

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

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题