外边框为黑色但内边框为灰色的表格
我想创建一个带有 1pt 黑色外边框和每个 td 周围相同边框的 html 表格。
应该看起来像这样(当然,只有边框)
我使用
<table border="1" style="border-collapse:collapse; border-color:Black; border-style:solid; border-width:1pt">
结果我得到了黑色的外层,但是内部边框是灰色的。
I want to create a html table with a 1pt black outer border and the same border around every td.
Should look like this (only the borders, of course)
I use
<table border="1" style="border-collapse:collapse; border-color:Black; border-style:solid; border-width:1pt">
As a result I get a black outer, but grey inner borders.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试在 CSS 样式表中实现类似的内容。
类似这样的 HTML:
示例
You could try implement something like this in your CSS stylesheet.
And something like this HTML:
Example here