---
title: "[Tip][一段非常有意思的debug CSS]"
author: "kj23"
date: "2007-01-16T20:30:33Z"
tags: ["CSS", "HTML", "IE"]
slug: "tip-debug-css"
draft: false
lastmod: "2007-01-16T20:30:33Z"
id: 47924
url: "https://kj23.iteye.com/blog/47924"
---

```

/*----- 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，看官误笑。