最复杂的CSS渲染错误(IE9)

dal*_*ard 10 css rendering internet-explorer-9

在IE9中看一下这个:

http://jsfiddle.net/dalgard/n6PDB/show/

屏幕转储: 在此输入图像描述

阅读这些评论:

/*
 *  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 */
}
Run Code Online (Sandbox Code Playgroud)

有没有人对此有任何意见?发生了什么,我该如何举报?我如何防止这种情况发生(我知道,似乎我可以改变上面的任何属性,但它不是那么容易......)?

CBR*_*cer 1

该线与父容器和内部 div 的边框有关。如果去掉内部 div 或边框,问题就可以解决。我不知道这是否有帮助,但这似乎就是问题所在。