4

在 jquery-ui-1.8.6.custom.css 中,我发现了这个 gem:

/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
.ui-datepicker-cover {
    display: none; /*sorry for IE5*/
    display/**/: block; /*sorry for IE5*/
    position: absolute; /*must have*/
    ...
}

显然,重复display样式是 IE 中错误的解决方法。如果我正确理解 CSS,这应该表现得像display: block;(即第一个条目应该被第二个覆盖)。

这对于哪个版本的 IE 是必要的?也只有 5.x 或 6?

4

1 回答 1

3

请参阅: http: //www.communis.co.uk/dithered/css_filters/css_only/property_empty_comment.html

#testElement {
   color/**/: #00cc00;
   }

应用者
..
Win IE 5.5 - 6.x
..


Win IE 4.0 - 5.0未应用
..

因此,评论/*sorry for IE5*/恰如其分地描述了该 hack - 仍然存在的零 IE5.0 用户将无法看到任何.ui-datepicker-cover元素。

于 2011-02-14T11:53:24.013 回答