CSS   发布时间:2022-04-17  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了最复杂的CSS渲染bug(IE9)大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
看看这个在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 */
}

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

解决方法

该行与父容器AND内部div的边界有关.如果你摆脱了内部的div或边界,它解决了这个问题.我不知道这是否会有帮助,但这似乎是问题.

大佬总结

以上是大佬教程为你收集整理的最复杂的CSS渲染bug(IE9)全部内容,希望文章能够帮你解决最复杂的CSS渲染bug(IE9)所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。