jQuery fadeIn fadeOut image difference 1px in Firefox

二次信任 提交于 2020-01-04 09:11:33

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/13289109/jquery-fadein-fadeout-image-difference-1px-in-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!