Eki 30
- You can force IE to apply transparence to PNGs. “In theory, PNG files do support varied levels of transparency; however, an Internet Explorer 6 bug prevents this from working cross-browser.” [CSS Tips, Outer-Court.com]
#regular_logo{background:url('test.png'); width:150px; height:55px;}/* \ */* html #regular_logo{background:none;float:left;width:150px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png', sizingMethod='scale');}/* */
- You can define
min-widthandmax-widthin IE. You can use Microsoft’s dynamic expressions to do that. [Ten More CSS Trick you may not know]
#container{min-width: 600px;max-width: 1200px;width:expression(document.body.clientWidth < 600? "600px" : document.body.clientWidth > 1200? "1200px" : "auto");}
- You can use Conditional Comments for IE. “The safest way of taking care of IE/Win is to use conditional comments. It feels more future-proof than CSS hacks – is to use Microsoft’s proprietary conditional comments. You can use this to give IE/Win a separate stylesheet that contains all the rules that are needed to make it behave properly. ” [Roger Johansson]
<!--[if IE]><link rel="stylesheet" type="text/css" href="ie.css" /><![endif]-->
Kaynak: Smashingmagazine
Yorum Yazın
Yorum yapmak için giriş yapmalısınız.