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

How to check what CSS style a DIV is set to

藏色散人
Release: 2023-01-04 09:38:29
Original
1942 people have browsed it

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!

Related labels:
css
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template