程序员如何解决IE6的漏洞,这些天? [英] How are programmers tackling ie6 bugs these days?
问题描述
我一直在使用院长爱德华兹 IE7 / 8脚本。不知道这是我的执行或没有,但有时候我会遇到那些没有固定相当或需要特殊处理这意味着我会回来,我开始关心IE6。所以,我在想,如果IE7 / 8还是旅途中,或者一些其他的做法/解决方案更好。
I have been using dean edwards ie7/8 script. Not sure if it's my implementation or not but sometimes I would experience ie6 issues that weren't quite fixed or required special handling which meant I would be back where I started, caring about ie6. So, I was wondering if ie7/8 is still the go or if some other practice/solution was better.
推荐答案
更新:我在这里扩大了我的答案跟我的网站上的教程,这可能会比在这里我的答案更有帮助。 <一href=\"http://www.virtuosimedia.com/tutorials/ultimate-ie6-cheatsheet-how-to-fix-25-internet-explorer-6-bugs\"相对=nofollow>终极IE6的cheatsheet:如何修复25+的Internet Explorer 6虫虫
Update: I expanded my answer here with a tutorial on my site, which will probably be more helpful than my answer here. Ultimate IE6 Cheatsheet: How To Fix 25+ Internet Explorer 6 Bugs
下面是我如何解决IE6:
Here's how I tackle IE6:
- 我同时验证我的XHTML和CSS。
- 我把我的设计简单,即使是复杂的。
- 我不使用无效黑客我
CSS。 - 我使用的是JavaScript框架/库
(我喜欢MooTools的,但你会得到一个
很多票jQuery的,原型的,
YUI,Dojo和许多其他人)的
处理大多数我的跨浏览器
JavaScript的问题。 - 我逐步提高我的网页等等
他们首先不工作
JavaScript,然后添加所有的钟声
和口哨声。 - 对于一些双缘
的问题,我用显示:内联; - 如果我绝对有,我用的是
单独的样式表,虽然我
发现我已经做到这一点少
少。 - 我会尽量避免在透明图像
我的布局。如果我绝对需要
他们,我用alpha的PNG8
透明度,这IE6实际上做
支持。 - 要获得在最小高度的问题,我
做到以下几点:
这对于IE6,其中除$ P $点的高度,最小高度:
This for IE6, which interprets height as min-height:
.classNameHere {height:300px;}
这对一切:
div>div .classNameHere {min-height:300px; height:auto;}
顺便说一句,如果你需要使用IE6隔离CSS,这是做一个好办法,因为它不支持子选择器。
Incidentally, if you need to isolate IE6 with CSS, that's a good way to do it, as it doesn't support child selectors.
这篇关于程序员如何解决IE6的漏洞,这些天?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!