gpt4 book ai didi

css - IE 中的表格边框重叠

转载 作者:太空宇宙 更新时间:2023-11-04 16:27:35 24 4
gpt4 key购买 nike

我知道 IE 不会将 css 样式应用于表格行,因此我不得不采取一种变通方法,即为每个单元格添加样式。现在我的问题是,在 Firefox/Chrome 中,外边框显示完美;但在 IE 中,它与单元格的底部边框有间隙。这就是差异的样子http://i.stack.imgur.com/9rg8S.jpg我无法更改链接样式表的内容,也无法弄清楚他们在这里想说什么 CSS Table cell border overlapping table border

链接样式表 (style.css) 内容:

body {
background-color: #cc0000;
}

.tablewhite{

border-collapse: collapse;
}

.tablewhite td{
background-color: #cc0000;;
color: #000;
font-weight: 10px;
border: 1px solid #fff;
padding-left: 2psx;
padding-right: 4px;
border-spacing: 0px;
}

HTML 页面:http://pastebin.com/2mZYDx1n

最佳答案

尝试在表格上添加边框:

.tablewhite{
border: 2px solid black;
border-collapse: collapse;
}

关于css - IE 中的表格边框重叠,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5241708/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com