離奇的table border

來源:互聯網
上載者:User
 做兼職的時候,給一個論壇介面修改完善CSS的時候,IE正常,在Firefox下總是有不明border出現,我把CSS,html 的style 仔細檢查,也沒有什麼結果,仍然出現,折騰了好幾個小時。最後索性把CSS樣式全部去掉,不信你還能出現。結果還是出現了。無聊之餘,我看到一個沒有見過的table屬性:
<table rules = "all" >
刪除之,發現終於border不見了,看來我對html markup好多都不知道,趕緊搜尋這個噁心的玩意。

結果如下: Quote RULES Attribute | rules Property

Sets or retrieves which dividing lines (inner borders) are displayed.

Syntax

HTML: <TABLE RULES = sRule... >
Scripting: [ sRule = ] TABLE.rules

Possible Values

sRule / String that specifies or receives one of the following values.
all  / Borders are displayed on all rows and columns.
cols /  Borders are displayed between all table columns.
groups /  Horizontal borders are displayed between all tHead, tBody, and tFoot objects; vertical borders are displayed between all colGroup objects.
none /  All interior table borders are removed.
rows /  Horizontal borders are displayed between all table rows.W3C的內容 Quote rules = none|groups|rows|cols|all
This attribute specifies which rules will appear between cells within a table. The rendering of rules is user agent dependent. Possible values:

* none: No rules. This is the default value.
* groups: Rules will appear between row groups (see THEAD, TFOOT, and TBODY) and column groups (see COLGROUP and COL) only.
* rows: Rules will appear between rows only.
* cols: Rules will appear between columns only.
* all: Rules will appear between all rows and columns.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.