开发者

Chrome developer tools > user-agent stylesheet overrides <strong>, <b> rules

I'm working on developing a site for a client. When working on my CSS in Chrome Developer Tools, it shows:

user agent stylesheet

strong, b {

font-weight: bolder;

}

The user agent stylesheet is disabling the bold on strong and b elements. What is this? How do I turn 开发者_如何学Pythonit off? Everything shows up correctly in Firefox. Why is it trying to alter the way I am styling things?


When I add this style to a page:

<style>
strong {
    font-weight: normal;
}
</style>

The text looks not bold and the inspector shows:

Chrome developer tools > user-agent stylesheet overrides <strong>, <b> rules

:

Meaning user agent style was overridden with provided value.

Is it what you are seeing? If yes then everything works as expected. If not then maybe your style rules for strong elements are not correct so they are not executing? Can you show your css?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜