自己动手丰衣足食之鼠标悬浮特效
来源:互联网 发布:linux开启端口命令 编辑:程序博客网 时间:2024/05/02 18:56
button特效:
参考链接:http://www.cnblogs.com/libin-1/p/5779392.html
下载地址:http://download.csdn.net/detail/cometwo/9460245
<!DOCTYPE HTML><html> <head> <meta charset="utf-8" /> <script type="text/javascript" src="js/jquery-2.1.0.min.js"></script> <title>基于jquery hover图片遮罩层滑动 </title> <style type="text/css"> * { margin: 0; padding: 0; list-style-type: none; } .con { width: 950px; height: 435px; background: pink; margin: 0px auto; border: 1px solid blue; padding-left: 25px; padding-top: 25px; } .con ul li { width: 297px; height: 198px; float: left; margin-right: 15px; margin-bottom: 15px; position: relative; overflow: hidden; cursor: pointer; border: 1px solid red; } .txt { width: 297px; height: 45px; background: rgba(0, 0, 0, 0.6); position: absolute; left: 0; bottom: 0; color: #fff; font-family: "微软雅黑"; } .txt h3 { font-size: 20px; font-weight: 100; height: 45px; text-align: center; line-height: 45px; border: 1px solid blue; } .txt p { font-size: 14px; text-align: center; border: 1px solid green; } </style> <script type="text/javascript"> $(function() { $(".con ul li").hover(function() { $(this).find(".txt").stop().animate({ height: "198px" }, 400); $(this).find(".txt h3").stop().animate({ paddingTop: "60px" }, 400); }, function() { $(this).find(".txt").stop().animate({ height: "45px" }, 400); $(this).find(".txt h3").stop().animate({ paddingTop: "0px" }, 400); }) }) </script> </head> <body> <div class="con"> <ul> <li> <img src="images/class1.jpg" /> <div class="txt"> <h3>IT培训</h3> <p>为您铺就成为IT大神的在线学习之路</p> </div> </li> <li> <img src="images/class2.jpg" /> <div class="txt"> <h3>语言学习</h3> <p>英语、韩语、日语各类语言课程一网打尽</p> </div> </li> <li> <img src="images/class3.jpg" /> <div class="txt"> <h3>职业技能</h3> <p>传授会计师、建筑师等各类考证学习宝典</p> </div> </li> <li> <img src="images/class4.jpg" /> <div class="txt"> <h3>中小学/大学</h3> <p>小学、初中、高中各科课程在线辅导</p> </div> </li> <li> <img src="images/class5.jpg" /> <div class="txt"> <h3>兴趣爱好</h3> <p>吉他、摄影等各类兴趣教程让你成为生活达人</p> </div> </li> <li> <img src="images/class6.jpg" /> <div class="txt"> <h3>亲子学堂</h3> <p>教你如何和宝宝一起成长</p> </div> </li> </ul> </div> </body></html>
0 0
- 自己动手丰衣足食之鼠标悬浮特效
- 自己动手丰衣足食之日历
- 自己动手丰衣足食之Swiper插件
- 自己动手丰衣足食之三级联动
- 自己动手丰衣足食之图片放大镜
- 自己动手,丰衣足食
- 自己动手,丰衣足食。
- 自己动手丰衣足食之 jQuery 数量加减插件
- 自己动手丰衣足食之征服jQuery插件编写
- <一>初探js特效魅力之鼠标悬浮事件01
- 自己动手丰衣足食之完数_黑马程序员
- 自己动手丰衣足食之轮播图一动态修改marginTop属性实现轮播图
- 自己动手丰衣足食之移动端城市选择插件
- 自己动手丰衣足食之移动端日期选择插件
- 自己动手丰衣足食之移动端日期选择插件(强烈推荐)
- 自己动手丰衣足食之表格排序插件jquery.tableSort.js
- 鼠标悬浮 边框动态出来特效
- 自己动手丰衣足食-搞定网页乱码
- Mybatis第三弹
- HDOJ 1166 敌兵布阵(一维树状数组)
- 成熟--到底是什么样子的?
- Go语言并发之美
- 深入理解C++中的mutable关键字 http://no001.blog.51cto.com/1142339/389840/
- 自己动手丰衣足食之鼠标悬浮特效
- 智慧石
- 机房收费系统重构之SQLhelper的理解
- 字符统计
- PythonChallenge Mission 3
- NLP学习网址
- 算法训练 s01串 (简单递归)
- Hdu 2186 悼念512汶川大地震遇难同胞——一定要记住我爱你【基础】
- SpringIoc:将xml文档中的bean写入beanfactory