`
kj23
  • 浏览: 26109 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

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

阅读更多
/*----- 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 楼 netfishx 2007-01-18  
这个东西确实不错,不过现在调试工具很多,意义不大了。

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

相关推荐

Global site tag (gtag.js) - Google Analytics