开发者

How to replicate the styling of html heading tags

开发者 https://www.devze.com 2023-01-01 22:20 出处:网络
Can anyone tell me how to replicate t开发者_如何学Pythonhe styling of a <h3> tag using CSS?From: \"Appendix D. Default style sheet for HTML 4\" http://www.w3.org/TR/CSS2/sample.html

Can anyone tell me how to replicate t开发者_如何学Pythonhe styling of a <h3> tag using CSS?


From: "Appendix D. Default style sheet for HTML 4" http://www.w3.org/TR/CSS2/sample.html

display: block;
font-size: 1.17em;
margin: .83em 0;
font-weight: bolder;

Of course, Kendrick is right in saying that browsers may use different formatting than suggested by the W3C.


The formatting of the H3 tag is chosen by the browser, so you may be able to replicate it for one browser but it won't necessarily map to another one...


If you want to get Firefox's style for all browser's, you can look in the "computed styles" tab of firebug when inspecting an h3 element with it, and copy what you see in a CSS file.

0

精彩评论

暂无评论...
验证码 换一张
取 消