html - 为什么它的 bordercolour 似乎只在 chrome 而不是 internet explore 或 firefox 中运行

标签 html css internet-explorer google-chrome firefox

伙计们,我只是想制作一个带有简单边框且背景颜色不同的网页。当我在 chrome 中加载网页时,它可以按照我想要的方式正常工作。但如果我在 Internet Explore 或 Firefox 中加载页面,它不会显示任何内容。我该如何为 Internet Explore 和 Firefox 修复此问题,因为我喜欢它在 Chrome 中的显示方式(这正是我希望在 Chrome 中显示的方式)。 这是我的代码

<html>
<body>
<table width="709" height="278" border="0" bordercolor="#000000">
<tr>
<td>&nbsp;</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/

相关文章:

javascript - 包括第三方页眉和页脚

javascript - 保存或选择时出现 HTML5 数据库问题

CSS li.before 彩色框内的圆圈就像 li 文本

php - IE 通过弹出窗口阻止使用 jQuery 创建 pdf

html - 某些链接无法在 Internet Explorer 11 中打开

python - Django:图像/绝对 URL 不显示在 html 中

java - 在 Web 服务中使用 htmlunit 时抛出的异常是什么意思?

javascript - Canvas 元素覆盖整个屏幕?

html5 + css3 slider 动画问题与 chrome

c++ - 在 C++ 应用程序中嵌入特定的 Web 浏览器