<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>点击查看 收起</title>
<script src="js/jquery-1.7.1.min.js"></script>
</head>
<style>
.abc{width: 150px;height: 150px;background: red;}
.fff{font-size: 18px;color: blue;}
.big-box{background: #888;}
.pink{
width: 150px;
height: 100px;
background: pink;
position: absolute;
margin: auto;
left: 0;
right: 0;
bottom: 0;
top: 0;
transform: rotate(80deg);
text-align: center;
line-height: 100px;
} .fff{
background: #fff;
border: 1px solid #000;
}
.head{line-height: 30px;}
.arrow{width: 20px;height: 20px;background: red;display: block;float: right;} .show_hide_btn{line-height: .64rem;font-size: .28rem;color: #4c4c4c;text-align: center;}
.show_hide_btn i{display: inline-block;width: 50px;height:50px;vertical-align: top;margin-top: .18rem;margin-left: .1rem;
background: url(img/fold_t.png) no-repeat center #fe3837;background-size: 30px auto;border-radius: 50%; box-shadow: 0 5px 15px 0 rgba(0,0,0,.14);}
.show_hide_btn i.flod_t{background: url(img/fold_t.png) no-repeat center #fe3837; background-size: 30px auto;transform:rotate(180deg);
-ms-transform:rotate(180deg); /* IE 9 */
-moz-transform:rotate(180deg); /* Firefox */
-webkit-transform:rotate(180deg); /* Safari 和 Chrome */
-o-transform:rotate(180deg); }
</style>
<script>
$(document).ready(function() {
var le = $('div.coup_list').length;
if(le >1){
$('.show_hide_btn').css('display','block');
$('.coup_list:gt(0)').css('display','none');
}
$('.show_hide_btn').toggle(function(){
$('.coup_list:gt(0)').show();
$('.show_hide_btn i').addClass('flod_t');
$('.show_hide_btn span').html('收起')
}
,function(){
$('.coup_list:gt(0)').hide();
$('.show_hide_btn i').removeClass('flod_t');
$('.show_hide_btn span').html('点击查看');
})
}); </script>
<body>
<div class="coup">
<div class="coup_list">111</div>
<div class="coup_list">44445</div>
<div class="coup_list">5675</div>
<div class="coup_list">ertyr</div>
<div class="coup_list">ertyer</div>
<div class="coup_list">ertye</div>
<div class="coup_list">etryefsdfr</div>
<div class="show_hide_btn" style="display:none" ><span>点击查看全部券码 </span><i class=""></i></div>
</div> </body>
</html>

最新文章

  1. Vi指令,随时追加
  2. Java的二维数组的应用及杨辉三角的编写
  3. DPM检测模型 VoC-release 5 linux 下编译运行
  4. jquery若干问题
  5. 利用javascript、php和ajax实现计算器
  6. no.5.print sum
  7. Python核心编程-描述符
  8. 3D变形旋转
  9. LA 3027 Corporative Network
  10. C# 使用代码来操作 IIS
  11. 【设计模式六大原则4】接口隔离原则(Interface Segregation Principle)
  12. java中dao层和service层的区别是什么?
  13. SPRING IN ACTION 第4版笔记-第五章BUILDING SPRING WEB APPLICATIONS-006-处理表单数据(注册、显示用户资料)
  14. java中包的应用
  15. 使用sqlcmd执行连接的时候一直报有语法错误
  16. lucene+盘古分词
  17. ceph集群安装
  18. 一种Webconfig自动化升级方法
  19. apktool给软件加注册机修改图标和文件名
  20. 使用 HttpClient 进行文件上传

热门文章

  1. 单点登录原理及实现sso
  2. jquery中的工具函数 Utilities
  3. ACTION中获得数据的几种方式
  4. 美化console.log的文本(转载)
  5. E20170516-gg
  6. Codeforces Round #209 (Div. 2) C - Prime Number
  7. 我理解的 js 异步成长总结
  8. 【OpenJ_Bailian - 4070 】全排列
  9. 【css】rem及其替换方案
  10. Hdu 5348 MZL&#39;s endless loop (dfs)