`font-weight` Is not working on chrome?

末鹿安然 提交于 2020-01-03 10:43:14

问题


Just tested something that works perfect on firefox and chrome doesn't makes anyhing with font-weight: bold/bolder property.

I tried to look up for another CSS property that may be overwriting it and there is none, also Google has no answers for me..

position: absolute;
top: 8px;
left: 50px;
font-size:38px;
font-weight: bolder;

回答1:


Solved with:

font-weight: 900;
font-family: "Arial Black", Arial, sans-serif;



回答2:


It works fine. The property must be getting overwritten somewhere or there is a mistake in your html structure somewhere. When you inspect the element via Chrome inspector do you see that it has the bolder style attribute?

http://jsfiddle.net/NNBZB/




回答3:


If you are using @font-face for the font-family, then you are probably experiencing this bug.

I'm having the same problem, but with Chrome ignoring font-weight:normal and using bold by default - it's doesn't even look like the bold version should, and there is no anti-aliasing.



来源:https://stackoverflow.com/questions/8529846/font-weight-is-not-working-on-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!