javascript - CSS border-right, border-bottom 在 firefox 中不显示

标签 javascript html css web browser

我正在使用 javascript 开发 Tic TAc Toe AI。

DEMO

如果您使用的浏览器不是 IE 或 Firefox,您会注意到屏幕上有一个蓝色的井字棋盘。但是,如果您使用的是 firefox,则该板不会显示,而在 Chrome 中,该板会一团糟。这是我的 HTML:

<table id="ticTable" cellpadding="0" cellspacing="0">
    <thead>
        <th colspan="3" id="status">&#x2d;&#x2d;&#x2d;&#x2d;</th>
    </thead>
    <tr>
        <td width="110" height="110"></td>
        <td width="110" height="110"></td>
        <td width="110" height="110"></td>
    </tr>
    <tr>
        <td width="110" height="110"></td>
        <td width="110" height="110"></td>
        <td width="110" height="110"></td>
    </tr>
    <tr>
        <td width="110" height="110"></td>
        <td width="110" height="110"></td>
        <td width="110" height="110"></td>
    </tr>
</table

这是我的 CSS:

td{
    margin:0px;
    padding:0px;
    border-bottom:5px solid #58ACFA;
    border-right:5px solid #58ACFA;
    text-align:center;
}
tr:last-of-type td,
tr td:last-of-type{
    border-bottom:none;
}

这在 Safari 和 Chrome 中完美运行: enter image description here

但是,Firefox 中什么也没有。

如何在 Firefox 中修复此板?谢谢!

最佳答案

或者试试

margin:0px auto;
padding:0px;
border-bottom:5px solid #58ACFA;
border-right:5px solid #58ACFA;
text-align:center;

关于javascript - CSS border-right, border-bottom 在 firefox 中不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23038386/

相关文章:

javascript - 遍历 JSONObject 并打印 html

javascript - @media 查询在 IE 8 中不支持

javascript - 自定义 Cursor,不能点击 DOM 元素

php - 将 JSON 对象附加到 URL 末尾

javascript - jqmath - 在数学函数之前/之后自动添加新行

css - 菜单不会居中

javascript - 只显示一个段落......不管是否有更多,空白,空白,类......只有并且只有CSS

javascript - 如何在 jQuery 中调用 javascript 函数

php - HTML5 输入类型文件的多重属性在 IE 中不起作用?

jquery - 如何在 jquery 的 bootstrap popover 内容中放置一个字形图标