Placeholder Image

字幕列表 影片播放

  • The horizontal rule is used to separate sections of a document. To adjust it we have four deprecated

  • attributes: size, width, noshade, and align, as well as the color attribute which is not

  • supported in all browsers.

  • The standard rule is drawn across the full width of the page. To adjust the length we

  • can use the width attribute, specified in pixels or a percentage.

  • Normally, browsers render the rule two pixels thick. This can be changed with the size attribute

  • to any number of pixels.

  • Also, the rule has two gray shades with the same fill color as the background. If we add

  • the noshade attribute it will instead be displayed in one solid color. This attribute does not

  • require a value, however we can use the attribute's own name as its value.

  • If we want another color then gray we can use the color attribute.

  • We can also align the rule to either the left or right, or center it which is the default.

The horizontal rule is used to separate sections of a document. To adjust it we have four deprecated

字幕與單字

單字即點即查 點擊單字可以查詢單字解釋

B1 中級

HTML教程 - 08 - 水準規則 (HTML Tutorial - 08 - Horizontal Rule)

  • 19 4
    Pan-Shy Gang 發佈於 2021 年 01 月 14 日
影片單字