字幕列表 影片播放 列印英文字幕 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.
B1 中級 HTML教程 - 08 - 水準規則 (HTML Tutorial - 08 - Horizontal Rule) 20 4 Pan-Shy Gang 發佈於 2021 年 01 月 14 日 更多分享 分享 收藏 回報 影片單字