Home > Article > Web Front-end > How to check if css is overridden?
You can easily check whether the css style is overridden through Chrome's developer tools. Checking method: 1. Open the specified page in the Chrome browser, right-click the specified element, and then click the "Check" button; 2. In the developer tool interface, if the CSS code has strikethrough, it will be overwritten by other CSS codes.
The operating environment of this tutorial: windows7 system, Chrome84.0.4147.89&&css3 version. This method is suitable for all brands of computers.
You can easily check whether the css style is overridden through the developer tools of the Chrome browser.
Viewing method:
1. Open the page specified for viewing in the Chrome browser, right-click the specified element, and then click the "Inspect" button
The following similar interface can pop up:
On the right side, a statement of the corresponding element CSS code appears, and some css codes are deleted. Line indicates that it is covered by other code.
Then you can look up or down at the CSS code currently locked to find the CSS code corresponding to the CSS, and you can find out which code covers the current code.
For example, in the above picture, display: inline-block;
and vertical-align: middle;# in
.layui-inline, img {} ##It is overwritten by the following css.
Programming Video Course! !
The above is the detailed content of How to check if css is overridden?. For more information, please follow other related articles on the PHP Chinese website!