搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

supported firefox - how can write table row set a border-top css properties.

more options

tr.lines td.line{

   width : 1px;
   height : 35px;
   width : 1px;
   height : 35px;

}

tr.lines td.top {

   border-top : 4px solid #B0C4DE;

}

tr.lines td.left {

   border-right : 2px solid #B0C4DE;

}

tr.lines td.right {

   border-left : 2px solid #B0C4DE;

}

tr.lines td.line{ width : 1px; height : 35px; width : 1px; height : 35px; } tr.lines td.top { border-top : 4px solid #B0C4DE; } tr.lines td.left { border-right : 2px solid #B0C4DE; } tr.lines td.right { border-left : 2px solid #B0C4DE; }

所有回覆 (3)

more options

What's the problem, is that leaving gaps? Do you have a demonstration page online showing how you have applied the class names to your HTML?

more options
line 
.top
.left
.right
if class of <TD> tag

由 cor-el 於 修改

more options

Try posting an entire table, please. If you do not have convenient hosting, you can use http://jsfiddle.net/ and show both the HTML and the CSS.