Q
同时打开
0
A
回答
2
这是一个非常基本的例子。你现在可以用CSS3做到这一切,但这里是jQuery的方式。
HTML:
<div class="box">
<div class="inner">
<p>Content</p>
</div>
</div>
CSS:
.box {
position: absolute;
bottom: 0;
width: 200px;
height: 0;
overflow: hidden;
}
.inner {
position: absolute;
top: 0;
left: 0;
width: 100%;
}
的jQuery:
$('.box').hover(function(){
$(this).animate({
height: 200
});
},function(){
$(this).animate({
height: 0
});
});
您可以测试代码here。
这应该做到这一点!
希望帮助:)
相关问题
- 1. 同时TCP打开
- 2. 弹出框同时打开
- 3. RuntimeError同时打开deploy.prototxt
- 4. 在登录时打开不同页面
- 5. 问题,同时打开星火壳
- 6. Binary Reader和Writer同时打开?
- 7. 打开嵌入Derby DB,同时debbunging
- 8. jquery类,同时打开两个
- 9. 错误,同时打开使用phpExcel
- 10. 游戏中心同时打开
- 11. 布劳尔打开,同时下载
- 12. 打开两个结果同时
- 13. 错误,同时打开日食
- 14. 同时打开多个插座
- 15. Windows Phone - 打开网站时打开
- 16. 保持DIV打开时,日历打开
- 17. C#代码打开/关闭抽屉并同时打印收据?
- 18. 如何打开同一浏览器中的选项卡时打开会话?
- 19. ios swift - 为什么我点击UISwitch打开,其他UISwitchs同时打开?
- 20. 打开仪表板,同时保持在同一会话
- 21. 如果我们打开一个文件,当用户打开相同的文件时不会再次打开
- 22. 使用时打开
- 23. 打开时空值
- 24. 打开spesific时间
- 25. 运行时错误,同时打开一个经典模板
- 26. 无法在不同时区打开时调整vCalendar(vcs)
- 27. 如何在打开emacs时像我关闭时那样打开?
- 28. System.out.println同时打印
- 29. jquery切换始终打开div的/在开始时打开
- 30. 打开文件对话框并打开不同的文件
[你尝试过什么?](http://mattgemmell.com/2008/12/08/what-have-you-tried/) – j08691 2012-04-17 16:10:17
我试过效果基本show()函数,但没有发生。然后我知道它隐藏了一切,而不是显示它 – Abilash 2012-04-17 16:13:05