开发者

Is it possible to expressly set a line's height of text underlined using `text-decoration: underline;` in CSS?

开发者 https://www.devze.com 2023-01-31 21:06 出处:网络
Is it possible to expressly set a line\'s height of text underlined using text-decoration: underline; in CSS? IE and FireFox renders text with font-weight: bold;开发者_运维百科 and text-decoration: un

Is it possible to expressly set a line's height of text underlined using text-decoration: underline; in CSS? IE and FireFox renders text with font-weight: bold;开发者_运维百科 and text-decoration: underline; applied as a bolded or a fat line for lack of a better word. Chrome, Safari and Opera renders it as 1px.

The goal is to render it consistently across browsers (No, really? Go on!). Any suggestions?


easiest thing would be wrap it with an <b> element and give it a bottom-border:1px solid;

that would make sure that the udnerline is 1 px in all browsers

0

精彩评论

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