Skip to content

Instantly share code, notes, and snippets.

@cheeaun
Forked from remy/jquery.ba-ie6ize.js
Created November 14, 2009 04:20
Show Gist options
  • Save cheeaun/234377 to your computer and use it in GitHub Desktop.
Save cheeaun/234377 to your computer and use it in GitHub Desktop.
/*!
* jQuery ie6ize: Emulate IE-6 rendering - 11/13/2009
* http://mankzblog.wordpress.com/2009/11/13/ie6-frame-to-battle-chrome-frame/
*
* Created by Mats Bryntse
*
* Plugin-ified by "Cowboy" Ben Alman
* http://benalman.com/
*/
(function($){
if ( $.browser.msie && $.browser.version == 6 ) return;
// Carefully selected IE6 features.
var props = [
{ "float": "left" },
{ "margin-left": "10px" },
{ "width": "102%" },
{ "height": "110%" },
{ "position": "absolute" },
{ "display": "inline" },
{ "color": "#fff" }
];
// The plugin itself. Usage:
//
// Just include this script. No need to code anything.
$(function(){
$('*').css( props[ Math.random() * props.length << 0 ] );
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment