ie经常卡死是什么原因_IE6必须死的6个原因

ie经常卡死是什么原因

Internet Explorer 6, released on August 27, 2001, was a package of problems right from the start. Within a year of release, Microsoft silently declared that IE6 would not make enough money for them to continue supporting. The result has been numerous security problems, unfixed browser bugs, and a daily migraine for developers. Six years later, IE6 is still a thorn in the side of developers and it's been perfectly clear that IE6, for the following reasons, must die.

2001年8月27日发布的Internet Explorer 6从一开始就是一揽子问题。 在发布的一年之内,微软默默地宣布IE6不会赚到足够的钱让他们继续支持。 结果导致了许多安全问题,未修复的浏览器错误以及开发人员的日常偏头痛。 六年后,IE6仍然是开发人员的棘手问题,而且很明显,由于以下原因,IE6必须消亡。

缺乏PNG透明度支持 (Lack of PNG Transparency Support)

I'm a huge fan on PNG images. Though their file sizes can be larger than GIF's and JPG's, they are generally clean, crisp graphics. Internet Explorer 6 does not support transparency in PNG images, rather it displays an ugly gray color as transparency's replacement. Firefox, IE7, Opera, and Safari all support PNG transparency but IE6 clearly never will and that's holding back businesses from using PNGs on their website.

我是PNG图片的忠实粉丝。 尽管它们的文件大小可以大于GIF和JPG的大小,但它们通常是干净,清晰的图形。 Internet Explorer 6不支持PNG图像中的透明度,而是显示难看的灰色代替透明度。 Firefox,IE7,Opera和Safari都支持PNG透明性,但是IE6显然永远不会支持,这使企业无法在其网站上使用PNG。

Note: I am aware of the ".htc" patch and CSS fixes, but they aren't a good enough solution.

注意:我知道“ .htc”补丁和CSS修复,但是它们并不是一个很好的解决方案。

CSS浮动+保证金/填充问题 (CSS Float + Margin / Padding Issues)

Internet Explorer 6 adds double the amount of margin or padding on DIVs that are floated the same direction as the margin/padding. The easy fix to this problem is using the CSS "display:inline;" attribute:value on the DIV, but it's easily one of the most annoying problems created by Internet Explorer 6.

Internet Explorer 6在浮动方向与空白/边距相同的DIV上增加了空白或边距的数量。 解决此问题的简单方法是使用CSS“ display:inline;”。 属性:DIV上的值,但它很容易成为Internet Explorer 6造成的最烦人的问题之一。

缺乏CSS伪类和伪元素支持 (Lack of CSS Pseudo-Class & Pseudo-Element Support)

Pseudo-classes and pseudo-elements are clearly important to enhance website design and control as can be seen in my article Advanced CSS Link - Spice Up Your Links. Pseudo-elements allow you to control the first line, first letter, content before and content after an element. Pseudo-classes allow you to select elements at specific states (hover, visited, etc.) CSS provides for hover/visited on anchors but no other elements.

伪类和伪元素对于增强网站设计和控制显然很重要,正如我的文章Advanced CSS Link-Spice Up Your Links中可以看到的那样。 伪元素允许您控制元素的第一行,第一个字母,内容之前和之后的内容。 伪类允许您选择处于特定状态(悬停,已访问等)的元素。CSS提供了在锚点上悬停/访问的锚定元素,但没有其他元素。

不支持最小高度CSS (No Min-Height CSS Support)

Min-height is a CSS attribute that I use in every single web project. Most of my website designs (given to me by my talented designer) require layers of background images and DIVs to be successful. Min-height is a valuable attribute because it allows me to set the necessary minimum height of the content DIVs so that the header and footer images (background or foreground) do not meet too closely with the content-area background. There's a very easy fix to this problem in my article Cross Browser CSS Min-Height but I prefer to avoid browser-specific fixes if possible.

最小高度是我在每个Web项目中使用CSS属性。 我的大多数网站设计(由我的才华横溢的设计师提供给我)都需要多层背景图像和DIV才能成功。 最小高度是一个有价值的属性,因为它允许我设置内容DIV的必要最小高度,以使页眉和页脚图像(背景或前景)与内容区域背景的距离不太紧密。 我的文章“ 跨浏览器CSS最小高度”中有一个非常简单的解决此问题的方法,但我希望尽可能避免使用特定于浏览器的修复程序。

CSS锚点背景图像闪烁 (CSS Anchor Background Image Flicker)

I initially loved CSS because you could swap background images using CSS :hover effects instead of the painful JavaScript "onmouseover" attribute. The problem with using a:hover and background images is that IE6 produces an annoying flicker between changing from the rested state to the hover state -- what a joke! Javascript provides a directive that can fix this problem, but wasn't the goal of using CSS avoiding JavaScript?

我最初喜欢CSS是因为您可以使用CSS:hover效果而不是痛苦JavaScript“ onmouseover”属性来交换背景图像。 使用a:hover和背景图像的问题在于IE6在从静止状态变为悬停状态之间会产生令人讨厌的闪烁-真是个玩笑! Javascript提供了可以解决此问题的指令 ,但是使用CSS避免JavaScript的目标不是吗?

代码崩溃 (Crashing With Code)

I've seen quite a few articles on how you can crash IE6 using very little code.

我看过很多关于如何使用很少的代码使IE6崩溃的文章。

These are just a few problems with Internet Explorer 6. Unfortunately I'm preaching to the choir -- I'm not worried about my blog's audience, but the "Mom'n'Pops'" everywhere that don't understand the difference in browsers. For this reason, millions of ignorant internet users will stick to using IE6 which will result in programmers dedicating valuable time to fix IE6-caused bugs and will hamper pushing websites to the next level.

这些只是Internet Explorer 6的几个问题。不幸的是,我正在向合唱团讲道-我并不担心我的博客的读者,但是到处都是“ Mom'n'Pops'”,但他们并不了解其中的区别浏览器。 因此,数百万无知的互联网用户将坚持使用IE6,这将导致程序员将宝贵的时间专用于修复IE6引起的错误,并妨碍将网站推向新的高度。

翻译自: https://davidwalsh.name/6-reasons-why-ie6-must-die

ie经常卡死是什么原因

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值