html - 边框仍然显示,为什么?

标签 html css

我在 table 上遇到了一个奇怪的问题...我已经在 css 中将边框设置为 0,我已经将边框颜色设置为透明,但是,在浏览器中,它仍然显示边框在顶部和左侧,这没有任何意义...

表格看起来像<table cellspacing="0" style="border-width:0px;border-collapse:collapse;" id="gvTransactions" pagersettings="" rules="all" class="transaction-posts">

CSS 看起来像:

table.transaction-posts, table#gvTransactions {
  border: 0 none transparent !important;
  border-radius: 0 0 0 0;
}

如您所见,它仍然在顶部、左侧和每一行输出黑色边框,即使我已将边框设置为 0...

enter image description here

最佳答案

在表标签中...添加 border="0"...如果这不起作用,则检查是否有任何 css 覆盖它,同时将您的代码发布到 jsfiddle 中。

关于html - 边框仍然显示,为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10277267/

相关文章:

html - CSS:过渡不适用于悬停

html - Bootstrap 多个超大屏幕

c# - 将包含图像及其图层的 HTML div 标记保存到新图像

css - 左侧滚动条

css - Internet Explorer 负边距未按预期工作

html - 在小型设备中使引导列之间的空间对齐一个在另一个下面

css - 在具有 id 的 div 中选择带有类的 div

jquery - 如何获取屏幕外的 div 并使用 translateX() 将其转换到屏幕中间

javascript - ng-app 指令的作用是什么?

javascript - angular-block-ui 不会将我的 html 作为自定义消息执行