【发布时间】:2011-11-19 11:30:12
【问题描述】:
在 IE9 中看看这个:
http://jsfiddle.net/dalgard/n6PDB/show/
屏幕转储:
阅读这些cmets:
/*
* IE9: Upon moving the mouse a ghostly 1px vertical line appears 53px into the
* blue area - only works with normalized CSS (!?) and not inside an iframe
*/
#test {
width: 152px; /* must be 152px or larger! */
height: 200px; /* can be any height */
border-radius: 1px; /* must be 1px or larger */
background-color: #44f; /* ghost-line becomes invisible with #00f */
}
#test:hover {} /* removing this makes the line disappear */
#test div {
opacity: 0; /* removing this makes the line disappear */
position: relative; /* removing this makes the line disappear */
left: 53px; /* must be 53px or smaller! */
width: 10px; /* must be 1px or larger */
height: 150px; /* height of the ghost-line */
}
有人对此有意见吗?发生了什么事,我该如何报告?我该如何防止这种情况发生(我知道,似乎我可以更改上面的任何属性,但这并不容易......)?
【问题讨论】:
-
哦,如果我切换到另一个选项卡然后再改回来,该行就会消失。不过,它会在移动鼠标后重新出现。
-
(感谢“表演”功能 - 很棒)
-
yw :) 确实很有用,但是bug,我无法重现。
-
这条线相当很难看到,因为它是半透明的。将添加屏幕转储。
标签: css rendering internet-explorer-9