Debug CSS

A script to show outline of all the element exist on page. (origin: Debug-CSS Firefox Extension)

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Hamadah2O2
日安装量
0
总安装量
0
评分
0 0 0
版本
1.0
创建于
2025-08-01
更新于
2025-08-01
大小
15.4 KB
许可证
MIT
适用于
所有网站

Debug CSS

A lightweight extension (now scripts) to show outline of all the element exist on page.

while working on web page development the one of the difficult part is to position the element as required and check which element affecting the other one.

This script allows user to see outline on every element of the page. Hold the keyboard Ctrl button and hover element it will show the element details along with the value.


Usage

Use keyboard shortcut, press Alt+Shift+C key to toggle the Debug CSS. (change line 64 if you want to change the key)


How it works?

This extension works on CSS outline attribute:

add the below code snippet in any CSS of a web page

  * {
    outline: 1px solid red;
  }

The script does the same the only thing is; it gives different color to different element(s) while the code snippet adds red outline to every element.


Thanks to Pranay Joshi the Author of Debug-CSS extension.