---
title: "IE中使用Firebug"
author: "Flighting_Chou"
date: "2011-05-13T18:29:26Z"
tags: ["Chrome", "Firebug", "IE", "JavaScript", "浏览器"]
categories: ["Web前端"]
slug: "ie-firebug"
draft: false
lastmod: "2011-05-13T18:29:26Z"
id: 1042814
url: "https://imyself.iteye.com/blog/1042814"
---

摘至：http://www.css88.com/archives/category/develop-tool

一个web版firebug，适用大多数浏览器，主要可以用于IE的CSS样式调试，因为IE developer toolbar和IE8自带的调试工具太难用了。

 

方式1.在网页head 部分引入下面的JS即可使用web版firebug：

        &lt;script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"&gt;&lt;/script&gt;

 

方式2.查看在线的页面元素

         将以下代码“`<` `a` `href` `=` `"javascript:(function(){var d=document, s=d.getElementById('firebug-lite');if(s!=null)return;s=d.createElement('script');s.type='text/javascript';s.src='https://getfirebug.com/firebug-lite.js ';d.body.appendChild(s);})();void(0);"` `>firebug-lite</` `a` `>` ”保存在html文件中，然后用ie浏览器打开，在 “firebug-lite” 的连接上点右键选择“添加到收藏夹”（这个应该针对IE，chrome右键没有加入收藏），把这个连接添加到收藏夹。然后打开任意一个网页，打开后，在收藏夹中找到刚才添加的这个，点一下，再等一小会儿，你就会看到网页的右下角有“firebug”的这个工具了。