伙计们,我只是想制作一个带有简单边框且背景颜色不同的网页。当我在 chrome 中加载网页时,它可以按照我想要的方式正常工作。但如果我在 Internet Explore 或 Firefox 中加载页面,它不会显示任何内容。我该如何为 Internet Explore 和 Firefox 修复此问题,因为我喜欢它在 Chrome 中的显示方式(这正是我希望在 Chrome 中显示的方式)。 这是我的代码
<html>
<body>
<table width="709" height="278" border="0" bordercolor="#000000">
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
最佳答案
在您的表中,您有 border="0"
- 更改它以表示所需的边框大小:
<table width="709" height="278" border="1" bordercolor="#000000">
尽管如此,我还是建议使用 CSS 来完成此操作:
table { border: 1px solid #000; }
关于html - 为什么它的 bordercolour 似乎只在 chrome 而不是 internet explore 或 firefox 中运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13882044/