ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Using Firebug in Internet Explorer

Using Firebug in Internet Explorer

原创 Linux操作系统 作者:AlexQin 时间:2011-02-09 10:56:16 0 删除 编辑
This tip comes from Ben Kelly. We all need to test on Internet Explorer, but we've been spoiled with tools like Firebug in other browsers. Ben has a tip to get Firebug to work in Internet Explorer:

In IE, go to your Favorites bar and copy-paste the following chunk of code and call it "Firebug". (Jonathan: In IE 7, I created a bookmark, then right-clicked on the properties, and then pasted the following code into the URL field.)

CODE:

javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new%20Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','[url=https://getfirebug.com/][font=NSimSun][color=#0000ff]https://getfirebug.com/[/color][/font][/url][font=NSimSun]','#startOpened');Then on any website, open that bookmark and it will give you a Firebug console.

Apparently, it seems to work pretty well for CSS and DOM stuff, but has some limitations when it comes to script debugging.

Enjoy.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11379785/viewspace-690488/,如需转载,请注明出处,否则将追究法律责任。

下一篇: Testing is questioning
请登录后发表评论 登录
全部评论

注册时间:2008-07-24

  • 博文量
    258
  • 访问量
    1020186