html - 按列禁用表格边框

标签 html css internet-explorer

我想通过选择一列来禁用表格中的边框,我不想在表格的第一行和第一列看到任何边框。

<table>
   <tr>
      <td style="border-left:0; border-left-color:white; border-top: none;">
      </td>
      <td colspan="2">
         Header text
      </td>
   </tr>
   <tr>
      <td>
        One
      </td>
      <td>
           One 1
      </td>
      <td>
           One 2
      </td>
   </tr>
   <tr>
      <td>
          Two
      </td>
      <td>
           Two 1
      </td>
      <td>
            Two 2
      </td>
   </tr>
</table>

在上表中,我使用内联 css 来做到这一点,但我得到的边框变灰而不是空白,我不想看到灰色边框。

任何帮助。

最佳答案

这解决了我的问题

表 td,表 th { 边框:1px 纯黑色;

} table { 边界崩溃:崩溃;

在谷歌搜索时,我在这里找到了一些相关人员

CSS - Border only inside the table

关于html - 按列禁用表格边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3543860/

相关文章:

javascript - IE 和 jQuery Masonry 不同意,(无法在初始化之前调用 Masonry 上的方法)

html - 非 flex 盒容器内的 flex 盒 100% 高度

html - 在移动设备上查看时更改背景

jquery - Bootstrap 轮播控件不起作用

html - IE9 渐变不显示

javascript - 让脉冲 SVG 在 IE 中工作

php - 在 JS 网页中模拟/模拟 iPhone Sprinboard 行为

javascript - 使图像响应高度和宽度

android - 带有 % 百分号的 html 短信正文会使 android 应用程序崩溃

html - 如何使用 Bootstrap 使页脚响应