开发者

Why is font in a button flatter than in a div?

开发者 https://www.devze.com 2023-02-23 09:28 出处:网络
Look at these buttons. On the left you can see a styled div, but on the right is an input button. Font-sizes are the same, but in the button the font is like it\'s flattened a little bit. Look at th

Why is font in a button flatter than in a div?

Look at these buttons. On the left you can see a styled div, but on the right is an input button. Font-sizes are the same, but in the button the font is like it's flattened a little bit. Look at the letters "k" and "w". 开发者_JAVA技巧

What do I have to do to make this font not flatten?


Is the <button> actually using a different font than the <div>? Or is it bold?

Set font-family and font-weight to identical values for the <div> and the <button>, and see if they look the same then.

0

精彩评论

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