简体   繁体   English

如何创建类似此页面的效果?

[英]How to create the effect like this page?

Click "Reply by Email" of that page, 点击该页面的“通过电子邮件回复”,

http://losangeles.kijiji.com/rooms-roommates/el-monte/room-for-rent-el-monte-california-91732/?ad=785656 http://losangeles.kijiji.com/rooms-roommates/el-monte/room-for-rent-el-monte-california-91732/?ad=785656

By using jQuery you can simply use the show() method: 通过使用jQuery,您可以简单地使用show()方法:

$("button").click(function () {
  $("#mydiv").show("slow");
});

More info here: http://docs.jquery.com/Effects/show 此处提供更多信息: http : //docs.jquery.com/Effects/show

In jQuery the effect closer to that page is slideDown : 在jQuery中,更接近该页面的效果是slideDown

$("button").click(function () {
  $("#mydiv").slideDown("slow");
});

With jQuery. 使用jQuery。 See jQuery Effects/animate . 参见jQuery Effects / animate

I believe MooTools is capable of doing this task. 我相信MooTools可以执行此任务。 If not its not that hard to create that effect. 如果不是这样的话,很难产生那种效果。 Use setInterval to create an interval that repeats itself and resizes the box. 使用setInterval创建一个可重复的间隔并调整其大小。

Simply jQuery 只是jQuery

With one line of code you can do this. 只需一行代码,您就可以执行此操作。

www.jquery.com www.jquery.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM