Chrome Developer Tools: How to find out what is overriding a CSS rule?

夙愿已清 提交于 2019-11-26 21:20:19

Use the Computed Style panel of the element inspector. Expand the property of interest to see the list of applicable rules, and which one won.

You can simply look at the ones with the same name which aren't striked out, remember the listing is by importance.

Or you can view the computed styles. They will be the actually applied styles.

crtrl + shift + c and inspect the element. Then find the style without a line through it, in the box in the down right corner.

the override is in most cases at the top (and without a line through it, as this style is the "winning" one).

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