开发者

HTML Anchor and Input Button Font Difference

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜