开发者

How to replicate the styling of html heading tags

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜