css自定义遮罩滑动
来源:互联网 发布:整蛊专家软件 编辑:程序博客网 时间:2024/05/16 05:32
//js
$('.pro_item').hover(function(){ $(this).find('.fous_bg').show().animate({marginTop:'0px'},1000);},function(){ $(this).find('.fous_bg').animate({marginTop:'300px'},1000);});$('.select_detail').hover(function(){ $(this).find('.btn_detail').show().animate({marginTop:'0px'},1000);},function(){ $(this).find('.btn_detail').animate({marginTop:'300px'},1000);});
//html
<div class="col-md-3 pd col-sm-3 col-xs-3 pro_item"> <ul> <li>省行</li> <li style="position: absolute"> <img class="imgclick" src="img/shenghang.png"> </li> <li class="item_bg" style="position: absolute;"> <div class=" fous_bg"></div> <div class="select_detail" style="width: 280px;height: 289px;position: absolute"> <span class="btn_detail">查看详情</span> </div> </li> </ul></div>//css
.pro_item{height:300px;position: relative}.pro_item .item_bg .fous_bg{ position: absolute; display: none; width:282px;height:289px; left: 0; /*padding-top: 80%;*/ background:black; opacity: 0.5;}.btn_detail{ display: none; position:absolute; z-index: 999; line-height: 44px; border-radius: 2px; font-size: 18px; font-weight: bold; top: 70%; left: 27%; width: 126px; height: 44px; background-color: white; color:#cbaa77; cursor: pointer;}
阅读全文
0 0
- css自定义遮罩滑动
- 滑动css
- CSS:css滑动门技术
- css滑动门技术
- CSS滑动门效果
- css sprites + 滑动门
- CSS滑动门技术
- css滑动的效果
- css按钮滑动
- CSS"滑动门"技术
- 纯CSS滑动效果
- css滑动门实现
- CSS幻灯片滑动效果
- css滑动门技术
- DIV CSS 上下左右滑动
- CSS滑动门特性
- css之滑动门
- CSS滑动门
- 基于Agile Lite开发框架实现底部导航切换页面
- 关于mysql字符串与时间戳
- 一道奥数题的简单实现
- struts2-convention-plugin-2.3.1.2.jar
- PHP平铺水印
- css自定义遮罩滑动
- MySQL数据库默认编码查看/修改
- HDU 5266 pog loves szh III 区间的LCA,ST表
- R语言:如何批量导入搜狗词库
- Linux系统修改编码
- ETag应用?
- .NET中使用NLog记录日志
- iOS 代码规范~判断if书写方式
- mysql 函数总结