在Firefox中,jQuery fadeIn fadeOut image difference 1px [英] jQuery fadeIn fadeOut image difference 1px in Firefox

查看:175
本文介绍了在Firefox中,jQuery fadeIn fadeOut image difference 1px的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



所以我有一个Firefox的问题,FadeIn / FadeOut转换会缩短宽度或高度我的图像由1像素。但只有在效果进行中。



一旦进度完成,图像再次具有完整的尺寸


将这个样式添加到您的图片,并将在FF上解决。

  box-shadow:#000 0em 0em 0em; 

由于某种原因,我不知道这个问题。
FireFox中的错误。


i've recently been implementing an image slider using jQuery.

So i have a problem in Firefox where the FadeIn/FadeOut transitions would shorten the width or height of my images by 1 px. but only while the effect is in progress.

once the progress is done, the image had full dimensions again

解决方案

Found it.

add this style to your image and it will be solved on FF.

box-shadow: #000 0em 0em 0em;

for some reason unknown to me yet this is the fix. Bug in FireFox.

这篇关于在Firefox中,jQuery fadeIn fadeOut image difference 1px的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆