Debug CSS

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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.