[转]IE6、7、8bug汇总

原标题:Internet Explorer CSS Bugs

原文地址:http://haslayout.net/css/

以下是英文全文:

---------------------------------------

Overview

Internet Explorer is famous for not supporting many of CSS properties as well as contaning numerous bugs in the ones it supports.

This page lists problems in Internet Explorer, samples demontrating them as well as solutions where such are known.

Even though I've tried to classify the bugs based on their nature, many bugs can be classified under several sections in which case the bug will appear only under General Bugs section.

Stats

Currently the site contains 46 "General Bugs" tutorials, 5 "hasLayout Bugs" tutorials, 6 "No Support Workarounds" tutorials and 1 "Crash Bugs" tutorials; all that totals to 58 tutorials and 70 solutions.

Latest tutorial was published on: Wed Aug 19 15:38:47 2009.

The site contains 44 IE6 bugs, 28 IE7 bugs and 19 IE8 bugs.

Note on Versions

In tutorials you'll see phrases such as "Affected: IE8 and all below" or "Fixes: all versions". By "all" I mean IE6,IE7 and IE8. IE5 and IE5.5 are history and this site does not consider those versions in the tutorials and solutions.

Version Filter

Select which affected IE versions you want to view:

IE6  IE7  IE8  

General Bugs

This section contains IE bugs that don't quite fit into other section or can be classified into two or more sections at the same time.

Bug NameAffected VersionsDescription
Image Label Focus BugIE8, IE7, IE6<img> elements that are inside <label> elements, when clicked, do not cause the focus to be transfered to corresponding form control.
No Auto-Margin Center on Buttons InconsistencyIE8Button-like elements do not get centered when { display: block; margin-left: auto; margin-right: auto; } applied on them and `width` is not explicitly set
Incorrect Float Shrink-Wrap BugIE7, IE6Floated elements that follow other floated elements and have `clear` set do not shrink-wrap correctly
Document Scrollbars Overflow InconsistencyIE7, IE6Unconventional default value for `overflow` on <html> element that may appear as a bug with regard to `overflow` on <body>.
Float Squeeze Weird Gap BugIE7, IE6A gap appears between last and second last floated elements that are stacked vertically.
Float Squeeze Duplicate Last Character BugIE7, IE6Last character of a floated element is duplicated.
Empty Element Height BugIE7, IE6Empty elements that have "layout" obtain height
Form Control Double Margin BugIE7, IE6horizontal margins on <input> and <textarea> elements are "inherited" from the ascendant with a margin and "layout"
IE7 1px Dotted Border Appears As Dashed BugIE71 pixel dotted border appears as dashed when at least one of the border sides is styled of a width larger than 1px
Relative Overflow Failure BugIE7, IE6Elements with `overflow` set to either `hidden` or `auto` behave as if overflow was set to `visible` when descendants that are causing overflow have position: relative set on them
IE7 "Broken" :hover Absolute BugIE7:hover that changes left/top offsets of an absolutely positioned descendant does not appear to "work" if the element is hidden out of the view; if it's visible, the left/top offsets do not change on :hover
Button Background Shift On :active BugIE8Background shifts up and to the left on :active state when applied to <button> or <input type="submit">
Ignored :focus BugIE8A ruleset, selector of which contains :focus that is followed by another simple selector, is ignored
Invisible Hover Border BugIE8Bottom border on :hover state either does not appear completely or is 1 pixel short (or cancels out outline) when outline is set
Percentage Padding Margin BugIE8Vertical margins appear to collapse upon a specific combination of vertical padding set in percentages as well as border or padding set on the parent's parent
Image Float Bullet Chaos BugIE8Incorrect position or no rendering at all of list markers (bullets) when list items have floated images
Non-Inherited TH Text-Align BugIE8text-align value of ascendant isn’t inherited by the TH element
32 Styles LimitationIE8, IE7, IE6Styles are ignored when they are set in the 32nd (or later) style method (i.e. <style>, <link> or @import)
Hover White Background Ignore BugIE7background does not change on :hover
IE7 Child Selector Comment BugIE7A selector containing child selector that is followed by a comment is ignored
Star HTML BugIE6* html selector is not ignored in IE6 (due to unversal selector being ignored when it's the first part of the selector)
IE6 !important Ignore BugIE6!important keyword is being ignored when the same rule is set again later in the same ruleset
PNG Image and Background Color MismatchIE8, IE7, IE6Colors specified in CSS differ from the ones used in PNG images despite having the same color code
No Auto Margin Center Pseudo-BugIE8, IE7, IE6side margins set to value `auto` do not center a block-level element
:first-line !important Rule Ignore BugIE8rules inside :first-line pseudo-class are completely ignored when !important modifier is used
:first-letter Ignore BugIE6The entire :first-letter ruleset is ignored
:first-letter !important Rule Ignore BugIE8rules inside :first-letter pseudo-class are completely ignored when !important modifier is used
Partial Click Bug v2IE7, IE6only text is clickable/reactant to :hover on links [(optional) until the mouse cursor rolls over the actual text]
Staircase BugIE7, IE6Floated elements stack up like a staircase
Disappearing List Background BugIE6Background on <li>, <dt>, <dd> disappears
noscript Ghost BugIE8, IE7, IE6<noscript> elements shows up when scripting is enabled; only borders/background is showing from it
No Transparency Click BugIE8, IE7, IE6transparent areas of background image on links is not clickable when `filter` is used to fix PNG transparency
List Drop Shift BugIE8Stuff in <li>s drops down below the bullet
No Increase on <ol> Numbers BugIE7, IE6The numbers on <ol> elements do not increase on subsequent <li>s
No Bullets on <ul> and <ol> BugIE7, IE6Bullets/numbers disappear from <ul> and <ol> elements
No line-height Vertical Center on Images BugIE7, IE6Images are not vertically centered using line-height method
No Background Image BugIE8, IE7, IE6No background appears in IE when background image is used (using `background` shorthand property)
Custom Cursor BugIE8, IE7, IE6custom cursors do not appear in IE
Leaking Background BugIE6Background leaks out from the element onto other elements that are next in the flow.
Expanding Height BugIE6Element is longer than the specified height (mostly applies to small heights).
Expanding Width BugIE6Element is wider than the specified width.
Double Margin BugIE6Left and right margins are doubled on floated elements.
Negative Margin BugIE7, IE6Part of the element that is outside the container disappears when negative margins are used
Italics Float BugIE6Element drops below floated element with italized text.
3px Gap Bug aka Text Jog BugIE6Elements next to a floated one either have a three pixel gap or drop below or keep shifting when several elements are floated.
Text-Align BugIE7, IE6text-align property affects block-level elements

hasLayout Bugs

IE bugs that are caused by elements having or not having "layout"

Bug NameAffected VersionsDescription
Scared of Floats BugIE7, IE6elements with layout clear floats instead of going around floated elements
Border Chaos BugIE6borders displayed chaotically; e.g. drawn where not should be or missing
Sub-Hover BugIE6Rules with selectors such as a:hover foo{} do not "work"
Partial Click BugIE6Only text is clickable on links (<a>) that are styled with display: block and thus have extra clickable area in standard compliant browsers
Disappearing Content BugIE6Some content disappears and reappears on scrolling or window transformation as well as minimizing and maximazing of the window.

No Support Workarounds

Various workarounds producing effect of properties and property values which are not implemented in IE.

Workaround NameAffected VersionsDescription
No Child Selector Support WorkaroundIE6Child selector is ignored
Max-Height WorkaroundIE6max-height is not supported
Max-Width WorkaroundIE6max-width is not supported
OpacityIE8, IE7, IE6opacity property is not supported
Min-Width WorkaroundIE6min-width property is not supported
Min-Height WorkaroundIE6min-height property is ignored

转载于:https://www.cnblogs.com/lvdabao/articles/3288840.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值