文章标题
来源:互联网 发布:eos utility mac 编辑:程序博客网 时间:2024/06/05 10:31
<style> body { margin: 0px; padding: 0px } ul { margin: 0px; padding: 0px; list-style: none; } .cont { float: left; margin: 10px; position: relative; left: 0px; top: 0px; width: 200px; height: 500px; overflow: hidden; } .cont img{ width: 100%; height: 100%; } .wrap { position: absolute; left: 0px; bottom: -200px; background: #000000; opacity: .5; width: 200px; height: 300px; }</style><script> $(function () { /*总结:优先推荐使用方法2*/ /*方法一:使用mouseover和mouseover两个事件实现*/ /* $(".cont").mouseover(function() { $(this).children('.wrap').stop(true).animate({bottom:"0px",},500); });/!* , function() { $(this).children('.wrap').stop(true).animate({bottom:"-138px",},500); }) *!/ $(".cont").mouseout(function() { $(this).children('.wrap').stop(true).animate({bottom:"-200px",},500) });*/ /*方法二:使用hover一个事件实现*/ $(".cont").hover(function () { $(this).children('.wrap').stop(true).animate({bottom: "0px",}, 500); }, function () { $(this).children('.wrap').stop(true).animate({bottom: "-138px",}, 500); }); });</script>
0 0
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 第十六章 Math函数
- 代码可读性优化
- YUV420P的像素数据编码为H.264的压缩编码数据
- 18-TCP Connection Establishment and Termination
- RecycleView简单使用
- 文章标题
- 知识管理软件之二 卡拉OK读小说 藏书库系列
- 19-TCP Interactive Data Flow
- 《从零开始学Swift》学习笔记(Day 40)——析构函数
- eclipse+tomcat搭建https环境
- Servlet容器Tomcat中web.xml中url-pattern的配置详解[附带源码分析]
- React Native环境搭建 (android/mac环境)
- C语言循环链表的实现与操作
- IntelliJ IDEA 主题、字体、编辑区主题、文件编码修改