Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图将 body 的不透明度设置为 0 一段时间,然后将其设置为 1。但问题是在 IE 中将不透明度设置为 1 后,页面看起来有些不同。
IE 在不透明度和抗锯齿方面存在问题。它有助于background-color在您正在褪色的元素上设置 a 。 另外,fadeTo采取一些不同的做法:你可能会更好地使用.fadeIn()和.fadeOut()。
background-color
fadeTo
.fadeIn()
.fadeOut()
它呈现不同的原因是因为仍然有一个过滤器应用于身体。尽管由于它的设置过滤器没有可见的效果,但渲染仍然必须支持过滤器,因为它在那里。
您必须检查不透明度是如何设置的,并确保一旦不再需要过滤器就将其移除。