2007-01-16

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

关键字: CSS 调错 debug
/*----- 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,看官误笑。
评论
netfishx 2007-01-18
这个东西确实不错,不过现在调试工具很多,意义不大了。

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

您还没有登录,请登录后发表评论

kj23
搜索本博客
博客分类
最近加入圈子
存档
最新评论
评论排行榜