在 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?