jQuery .animate()强制样式“overflow:hidden” [英] jQuery .animate() forces style "overflow:hidden"
本文介绍了jQuery .animate()强制样式“overflow:hidden”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当触发时,jQuery的 .animate()
强制样式 overflow:hidden
有另一个元素悬挂,具有负面位置,外面。
jQuery's .animate()
forces the style overflow: hidden
when triggered, messing with my animated element because I have another element that's hanging, with negative position, outside of it. is there anyway to avoid that?
推荐答案
另一种方法是将元素声明为!important css。
Another way is to declare the element as !important in css.
例如。
.somediv {
overflow: visible !important;
}
这篇关于jQuery .animate()强制样式“overflow:hidden”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文