当元素有填充时,如何阻止脚本式的盲目效果闪烁?
看起来,当在带有填充的元素上使用盲目向下效果时,看起来有点尴尬。它似乎盲目地向下太远,然后跳回来。这是一件非常微妙的事情,但确实很烦人。
我没有在线示例,但如果您访问 github 上的演示,并使用 firebug 或其他内容为元素提供 padding-top 或bottom,您就会明白我的意思。
http://github.com/madrobby/scriptaculous/wiki/effect-blinddown
http://madrobby.github.io/scriptaculous/effect-blinddown/
有人找到办法阻止它吗?
it seems that when the blind down effect is used on an element with padding it looks a bit awkward. It seems to blind down too far and then jumps back. It's a very subtle thing but is really annoying.
I don't have an online example but if you go to the demo on github and give the element a padding-top or bottom with firebug or something you'll see what I mean.
http://github.com/madrobby/scriptaculous/wiki/effect-blinddown
http://madrobby.github.io/scriptaculous/effect-blinddown/
Anybody found a way to stop it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
仍然没有解决这个问题,但正如我在评论中所说,这个问题可以很容易解决。
Still not resolved this but as I said in my comment, this issue can be worked around pretty easily.
万一有人遇到这个问题试图解决这个问题,您可以将您的内容放入 BlindDown() div 内的 div 中。
那是,
In the off chance someone runs across this trying to solve this problem, you can put your content inside a div inside the BlindDown() div.
That is,