页面加载时的 jquery 滑动
如何在 css 设置为 display:none 的页面加载时使用 jquery 向下滑动 div?我看到了很多解决方案,但如果 css 设置为 display:none,则没有一个可以滑动 div。最好的方法是在加载时和滑动后隐藏它,但在页面加载时 div 会闪烁(显示)。
How can slide down a div with jquery on page load where css is set to display:none? I see a lot of solutions but none can slide div if css is set display:none. The best way is to hide it on load and after slidedown but the div have flash (show) when page is loading.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以尝试以下操作:
HTML:
CSS:
它在页面加载时向下滑动。
演示
You could try this:
HTML:
CSS:
It slides down on page load.
DEMO
这在内部使用了
display:block
this internally make use of
display:block
我没有找到上面的工作解决方案。所以这里是 http://www. robertprice.co.uk/robblog/using-jquery-to-scroll-to-an-element/
I didn't found above as working solution. So here it is http://www.robertprice.co.uk/robblog/using-jquery-to-scroll-to-an-element/