简体   繁体   English

CSS border-right,border-bottom在Firefox中未显示

[英]CSS border-right, border-bottom not showing up in firefox

I am working on a Tic TAc Toe AI in javascript. 我正在使用javascript制作Tic TAc Toe AI。

DEMO DEMO

If you are using a browser other than IE, or Firefox, you will notice that there is a blue Tic Tac Toe board on the screen. 如果您使用的不是IE或Firefox浏览器,则会注意到屏幕上有一个蓝色的Tic Tac Toe面板。 But if you are using firefox, the board doesn't show and in Chrome, the board is messed up. 但是,如果您使用的是Firefox,则该面板不会显示,而在Chrome中,该面板会混乱。 Here is my HTML: 这是我的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

And here is my CSS: 这是我的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;
}

This works perfectly in Safari and Chrome: 这在Safari和Chrome中非常有效: 在此处输入图片说明

But then, nothing in Firefox. 但是,在Firefox中什么也没有。

How can I fix this board in Firefox? 如何在Firefox中修复此板? Thanks! 谢谢!

Or try 或尝试

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM