A JavaScript library to make MSIE behave like a standards-compliant browser.


IE7.js is a JavaScript library to make Microsoft Internet Explorer behave like a standards-compliant browser. It fixes many HTML and CSS issues and makes transparent PNG work correctly under IE5 and IE6.


Current version: 2.1 beta4.



Upgrade MSIE5.5-6 to be compatible with MSIE7.

<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js"></script>


Upgrade MSIE5.5-7 to be compatible with MSIE8.

<!--[if lt IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>

You do not need to include IE7.js if you are using IE8.js


Upgrade MSIE5.5-8 to be compatible with modern browsers.

<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>

You do not need to include IE7/IE8.js if you are using IE9.js


The script only fixes images named: *-trans.png

If you want the fix to apply to all PNG images then set a global variable as follows:

var IE7_PNG_SUFFIX = ".png";

You must set this variable before including the IE7.js script. Alternatively, you can set the variable inside the IE7.js script element:

<script src="IE8.js">IE7_PNG_SUFFIX=".png";</script>

The suffix will ignore query string parameters. For more fine-grained control you can also set IE7_PNG_SUFFIX to a RegExp object. If you want to use an alternative PNG solution then set the suffix to something that cannot possibly match:

var IE7_PNG_SUFFIX = ":";

By default, the PNG will be stretched (this simulates tiling). If you want to turn this off then set the no-repeat property as follows:

div.example {
  background: url(my-trans.png) no-repeat;

Unfortunately, the transparent background image cannot be tiled (repeated) using background-repeat. Nor can it be positioned usingbackground-position.


You may link directly to these files if you wish:


Or go to the downloads section to download the current version.

Getting Started

Here is a nice introduction:




10 thoughts on “ie7-js

  1. Pingback: kyrie 4

  2. Like

    Like!! I blog quite often and I genuinely thank you for your information. The article has truly peaked my interest.

  3. The Lost Book Of Remedies

    It cаА аЂаn bаА аЂа• seeen and ju?ged only by watching the

  4. wholesale authentic jerseys

    Hi there it’s me, I am also visiting this website daily,
    this site is actually fastidious and the visitors are
    genuinely sharing good thoughts.wholesale authentic jerseyshttp://www.geburtstagsgeschenk24.de/8893-2/http://multi-vrf.ru/1041-2/

  5. 399355

    I was recommended this website by my cousin. I’m not sure whether
    this post is written by him as nobody else know such detailed about my problem.
    You are incredible! Thanks!399355http://borrdeteli.forumcrea.com/viewtopic.php?pid=3478http://www.pion.pl/forum/phpBB2/viewtopic.php?p=398668http://seoultutor.com/forum/default.aspx?g=posts&m=142909&

  6. Flat Belly Detox

    Thank you ever so for you article post.Much thanks again. Keep writing.

  7. cheap mlb jerseys from China

    Hi, i think that i saw you visited my website thus i got here to go
    back the choose?.I’m trying to find things to enhance my site!I suppose its good enough to use some
    of your concepts!!cheap mlb jerseys from Chinahttp://macrobusinessforum.com/topic/30678067/1/http://www.miniemotomaniaci.it/forum2/viewtopic.php?p=12656

  8. cheap nba jerseys free shipping

    I am really enjoying the theme/design of your web site.
    Do you ever run into any web browser compatibility issues?
    A couple of my blog visitors have complained about my website not working correctly in Explorer but looks great
    in Chrome. Do you have any solutions to help fix this problem?cheap nba
    jerseys free shippinghttp://pcheli.com/1061-2/http://pnc.vraiforum.com/t295105-All-About-Nfl-Merchandise-Jerseys.htmhttp://rus-teploobmennik.ru/722-2/

  9. womens ferragamo sneakers

    Fine way of describing, and pleasant piece of writing to obtain information on the topic of my presentation topic, which i am going to convey in school.