An Introduction to the Internet Explorer Developer Toolbar

來源:互聯網
上載者:User
 

If you're like most Web developers, when you were first learning HTML, you probably spent a great deal of your time playing around with your browser. The fact that you could simply do a "View Source" and see how an interesting web page was implemented was one of the things that helped HTML catch on so quickly. This "code sharing" is undoubtably one of the reasons the Web was able to grow as quickly as it did.

Unfortunately, these days it's not so easy to take a look at the magic going on behind the scenes of the average web page. With the emphasis on usability and appearance, the previously simple HTML has become incresingly difficult to read and these days most web pages are made up of a combination of several files and use often use as much CSS and client-side script as they do HTML. Using "View Source" simply doesn't cut it anymore. Luckily Microsoft has realized this fact and is building a tool to help developers analyze these increasingly complex web documents. It's called the Internet Explorer Developer Toolbar. In this article I'll give you a quick introduction to this powerful new tool and examine some of it's most useful features.

Download and Installation

As I write this, the latest version of the toolbar is the Internet Explorer Developer Toolbar Beta 3. As with all pre-release software, it may contain bugs and you shouldn't expect any official support from Microsoft. I've been using it on Windows XP Pro with IE 6 and haven't run into any problems, but that doesn't mean that you won't.

You can download the toolbar from the following link:

http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en

On that page you'll also find Microsoft's overview of the tool which I've included below for reference.

Overview

The Internet Explorer Developer Toolbar provides several features for exploring and understanding Web pages. These features enable you to:

  • Explore and modify the document object model (DOM) of a Web page.
  • Locate and select specific elements on a Web page through a variety of techniques.
  • Selectively disable Internet Explorer settings.
  • View HTML object class names, ID's, and details such as link paths, tab index values, and access keys.
  • Outline tables, table cells, images, or selected tags.
  • Validate HTML, CSS, WAI, and RSS Web feed links.
  • Display image dimensions, file sizes, path information, and alternate (ALT) text.
  • Immediately resize the browser window to a new resolution.
  • Selectively clear the browser cache and saved cookies. Choose from all objects or those associated with a given domain.
  • Choose direct links to W3C specification references, the Internet Explorer team weblog (blog), and other resources.
  • Display a fully featured design ruler to help accurately align and measure objects on your pages.
  • Find the style rules used to set specific style values on an element.
  • View the formatted and syntax colored source of HTML and CSS.

The Developer Toolbar can be pinned to the Internet Explorer browser window or floated separately.

This Beta 3 version of the toolbar contains functionality and stability enhancements over previous versions, including:

  • Style Tracer: Right mouse click on a style value for an element and select Style Tracer to find the style rule that is effecting that value.
  • CSS Selector Matches: View a report of all style rules set and how many times they are used on the current page.
  • View Source: View the formatted and syntax colored source of the original page, currently rendered page, element or element with the styles that are effecting it.

Your feedback is greatly appreciated. Please visit the Developer Toolbar Wiki on Channel 9 to enter bug reports, comments, and suggestions.

You'll need at least Windows 2000 and IE 6, but I assume that's not an issue for most developers these days. Installation went off without a problem for me. It's about as simple as possible although you still need to agree to the license agreement and click "Next" about half a dozen times before you're through.

After installation was complete I still needed to manually add the toolbar's button to IE's toolbar. In IE 6, you do this by right clicking on the toolbar and choosing "Customize...". That brings up the "Customize Toolbar" dialog box which should have the "IE Developer Toolbar" button available to be added to the toolbar.

In IE 7, the process is similar, but the names have changed. After right clicking on IE's toolbar you choose "Customize Command Bar -> Add or Remove Components..." in order to get to the "Customize Toolbar" screen.

After adding the button to the toolbar, IE's toolbar should now have an icon like the one shown below.

The Main Window

Clicking the icon discussed above brings up the toolbar's main window. By default, the window is docked in the bottom half of IE and looks something like this.

If you prefer, you can click the icon in the upper right corner to detatch the window from IE altogether.

The heart of the program is the DOM Explorer which lets you drill down into a page's HTML and examine the different attributes and styles related to the objects on the page. So instead of wading through tons of HTML, you simply find the item in the page hierarchy and the toolbar display its properties for you. But what if you can't find the element of interest in the hierarchical tree? No problem... the toolbar let's you select a page element simply by clicking on it and then finds it for you.

While the DOM Explorer is the heart and soul of the program, it also includes tons of other useful tools. I won't go into detail on all of them, but here are some quick highlights.

It shows image information, including dimensions, size, and path:

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.