Latest 100 public
snipts » ie
showing 1-20 of 41 snipts for ie
-
∞ CSS Gradients in IE
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#233e8b', EndColorStr='#0f1d53'); /* IE6,IE7 */ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#233e8b', EndColorStr='#0f1d53')"; /* IE8 */
-
∞ Detectar version de IE con PHP
<?php $version = $_SERVER["HTTP_USER_AGENT"]; echo $texto_cortado = substr($version,30,3); ?>
-
∞ Cufón IE bugfix
<script type="text/javascript"> Cufon.now(); </script>
-
∞ html5 for ie
(function(){if(!/*@cc_on!@*/0)return;var e = "abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(','),i=e.length;while(i--){document.createElement(e[i])}})()
-
∞ jQuery Fix z-index IE bug
$(function() { var zIndexNumber = 1000; $('div').each(function() { $(this).css('zIndex', zIndexNumber); zIndexNumber -= 10; }); });
-
∞ Make IE resize images smoothly
img {-ms-interpolation-mode:bicubic;}
-
∞ IE Bugs
The Internet Explorer Guillotine Bug The IE5/6 Doubled Float-Margin Bug IE7 Bottom Margin Bug The IE Escaping Floats Bug The IE6 Peekaboo Bug The IE6 “Ghost Text” Bug The IE6 Expanding Box Problem The IE6 3-pixel Gap
-
∞ Easy css hacks using SASS
//Easy CSS Hacks using SASS // In most cases, you'll never need the 3rd, or 4th hacks here. #idtag * html & //IE6 and below cssstyle: value * first-child+html & //IE7 only cssstyle: value html>body & //IE7,IE8, and modern browsers cssstyle: value html:first-child & //Opera only 9 and below cssstyle: value
-
∞ Browser/Engine specific styles
-moz-border-top: 5px -webkit-border-top: 5px -k8-border-top: 5px -khtml-border-top: 5px
-
∞ Remove IE image toolbar
<meta http-equiv="imagetoolbar" content="no" />
-
∞ Use conditional comments to HIDE something from IE
<!-- Use conditional comments to HIDE something from IE --> <!--[if !IE]>--> Do something here, IE will ignore this, other browsers parse it just fine <!--<![endif]-->
-
∞ ChromeFrame toggle
<meta http-equiv="X-UA-Compatible" content="chrome=1">
-
∞ CSS Cross Browser Transparency
.yourClass { filter:alpha(opacity=50);/*Needed for IE*/ -moz-opacity:0.5;/*Older mozilla broswers like NN*/ -khtml-opacity: 0.5;/*Old versions of Safari and "KHTML" browser engines*/ opacity: 0.5;/*FF, Safari, and Opera*/ }
-
∞ IE Double Float Margin Bugs
.yourClass { float: left; width: 350px; margin: 20px 0 15px 100px; display: inline; }
-
∞ using javascript to emulate target="_blank"
(function ($) { function handleExternalLink (e) { var t = e.target; // the target may not be an 'a' tag, so we climb the dom to find a link while (t && t.tagName.toLowerCase() !== 'a') { t = t.parentNode; } // no target?, target doesn't have a 'ext' class?, or 'external' role set? if (!t || !($(t).hasClass('ext') || $(t).attr('rel').indexOf('external')) ) { return; } if (!$.browser.msie) { // If this isn't IE 6, use native browser functionality $(t).attr('target', '_blank'); } else { // otherwise, do it for 'em window.open( t.href, (new Date()).getTime(), [ // array joining is faster than string concatenation ['height=', document.body.clientHeight].join(''), ['width=', document.body.clientWidth].join(''), 'top=0', 'left=0', 'scollbars=yes', 'resizeable=yes', 'status=yes', 'titlebar=yes', 'toolbar=yes' ].join(',') ); e.preventDefault(); } } // We watch the document container for click events // Our function above will handle those clicks $('#content-contain').click( handleExternalLink ); }(jQuery))
-
∞ IE z-index stacking issues
// courtesy of Matthias Buehl $(document).ready(function() { if ($.browser.msie) { var zIndexNumber = 1000; $('div').each(function() { $(this).css('zIndex', zIndexNumber); zIndexNumber--; }); } });
-
∞ Inline-block for IE6/IE7
.element {zoom:1; display:inline;}
-
∞ IE7 compatibility tag for IE8
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
-
∞ IE default view
<!--[if IE 6]> <style> body {display: none;} </style> <![endif]-->
-
∞ IE6 Server Side Workaround
dim userAgent dim killIE userAgent = request.ServerVariables("HTTP_USER_AGENT") killIE = instr(1, userAgent, "MSIE 6.0", 1) if ((killIE <> "") OR (killIE <> 0)) then <Code to execute if not IE6 goes here> end if


