开发者

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

开发者 https://www.devze.com 2023-03-26 05:53 出处:网络
I\'m working on developing a site for a client. When working on my CSS in Chrome Developer Tools, it shows:

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

精彩评论

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