开发者

HTML Anchor and Input Button Font Difference

开发者 https://www.devze.com 2023-01-23 02:24 出处:网络
Anyone knows why the font of this elements are not the same? Using Anchor Element <a style=\"font-weight: bold; \">bold</a>

Anyone knows why the font of this elements are not the same?

Using Anchor Element


<a style="font-weight: bold; ">bold</a>

Us开发者_StackOverflowing Input Button


<input type="submit" value="bold" 
style="font-weight:bold; border: none; background-color: transparent" />


That's because the font-family and font-size are different too:

see
http://jsfiddle.net/RQBr3/

vs
http://jsfiddle.net/RQBr3/1/
with font-size and font-family added.

0

精彩评论

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