ITeye博客

[Tip][一段非常有意思的debug CSS]

kj23 · 2007-01-16 20:30 · Markdown


/*----- the debug css style -----*/

* { outline: 2px dotted red }
* * { outline: 2px solid green }
* * * { outline: 2px dotted orange }
* * * * { outline: 2px solid blue }
* * * * * { outline: 1px dotted red }
* * * * * * { outline: 1px solid green }
* * * * * * * { outline: 1px dotted orange }
* * * * * * * * { outline: 1px solid blue }	

/*----- the debug css style -----*/

虽然也可以用ff的插件来outline,但是总有些不方便,毕竟那是动态的,自己需要用到加上border呢,又嫌麻烦。

这段css可以比较有效的帮助我们调错,还可以根据情况注释掉一部分,调试某一层次对象。

不过这般现代css技术,ie是无福消受了。呵呵,也就是个小tip,看官误笑。

评论(1)

  1. #1 楼 · netfishx · 2007-01-18 20:11

    这个东西确实不错,不过现在调试工具很多,意义不大了。

    btw:转载请注明出处 http://homepage.mac.com/chrispage/iblog/C42511381/E20060806095030/index.html

评论功能维护中,当前仅展示历史评论。