Home  >  Article  >  Web Front-end  >  How to check what CSS style a DIV is set to

How to check what CSS style a DIV is set to

藏色散人
藏色散人Original
2021-01-04 09:23:371933browse

How to view the CSS style set by DIV: 1. Press the shortcut key combination [Ctrl Shift C], and then move the mouse to the element being viewed to view; 2. Click the element being inspected; 3 , right-click [Check].

How to check what CSS style a DIV is set to

The operating environment of this tutorial: Dell G3 computer, Windows7 system, Chrome76.0&&CSS3 version.

Recommended: "css video tutorial"

Check what CSS style is set to the DIV

The elements of the front page are passed CSS styles are displayed, and front-end developers can use tools to view or debug the CSS on the web page.

It is recommended to use Google Chrome or Firefox. These two browsers have powerful consoles and are one of the necessary debugging tools for front-end developers.

The following takes Google Chrome as an example (Firefox is similar):

1. Press the shortcut key combination Ctrl Shift C

How to check what CSS style a DIV is set to

As shown in the picture above, press the key combination Ctrl Shift C on the current page, and then move the mouse to the element being viewed, and the element will be set to a reviewable state.

2. Click on the element being reviewed

How to check what CSS style a DIV is set to

As shown above, the CSS styles of the current element are listed on the right side of the console.

You can debug the display style of the page by editing the CSS properties on the right, which is very convenient.

Faster method:

How to check what CSS style a DIV is set to

The next steps are the same as above.

The above is the detailed content of How to check what CSS style a DIV is set to. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:css important what isNext article:css important what is