css 一个简单的* CSS调试器。要使用,请在https://zaydek.github.io/debug.css为“Debug CSS”添加书签。点击此处了解更多信息https://medium.

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 一个简单的* CSS调试器。要使用,请在https://zaydek.github.io/debug.css为“Debug CSS”添加书签。点击此处了解更多信息https://medium.相关的知识,希望对你有一定的参考价值。

/* debug.css | MIT License | zaydek.github.com/debug.css */ if (!("is_debugging" in window)) { is_debugging = false; var debug_el = document.createElement("style"); debug_el.append(document.createTextNode(`*:not(g):not(path) { color: hsla(210, 100%, 100%, 0.9) !important; background: hsla(210, 100%,  50%, 0.5) !important; outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important; box-shadow: none !important; filter: none !important; }`)); } function enable_debugger() { if (!is_debugging) { document.head.appendChild(debug_el); is_debugging = true; } } function disable_debugger() { if (is_debugging) { document.head.removeChild(debug_el); is_debugging = false; } } !is_debugging ? enable_debugger() : disable_debugger();
/*! debug.css v0.0.1 | MIT License | zaydek.github.com/debug.css */
:not(g):not(path) {
	color:                 hsla(210, 100%, 100%, 0.9) !important;
	background:            hsla(210, 100%,  50%, 0.5) !important;
	outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important;
	
	box-shadow: none !important;
	filter:     none !important;
}
/*! debug.css v0.0.2 | MIT License | https://gist.github.com/zaydek/6b2e55258734deabbd2b4a284321d6f6 */
.debug *:not(g):not(path) {
	color:                 hsla(210, 100%, 100%, 0.9) !important;
	background:            hsla(210, 100%,  50%, 0.5) !important;
	outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important;

	box-shadow: none !important;
	filter:     none !important;
}
/*! debug.css v0.0.3 | MIT License | https://gist.github.com/zaydek/6b2e55258734deabbd2b4a284321d6f6 */
[debug],
[debug] * {
	color:                 hsla(210, 100%, 100%, 0.9) !important;
	background:            hsla(210, 100%,  50%, 0.5) !important;
	outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important;

	box-shadow: none !important;
	filter:     none !important;
}

以上是关于css 一个简单的* CSS调试器。要使用,请在https://zaydek.github.io/debug.css为“Debug CSS”添加书签。点击此处了解更多信息https://medium.的主要内容,如果未能解决你的问题,请参考以下文章

web前端开发工具都有哪些

怎样在F12下查看源码和调试网页CSS

您如何通过VS Code成功为CSS提供元素属性?

css中h3等于几号字体

CSS3颜色,文字,文本部分常用属性

如果您不知道图像的大小,请在 Div 中垂直和水平居中图像?