Jquery加载完成后弹出层
来源:互联网 发布:java 如何做物联网开发 编辑:程序博客网 时间:2024/06/05 09:16
Jquery加载完成后弹出层:
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Jquery加载完成后弹出层</title><meta charset="utf-8" /> <style> body,div{padding:0; margin:0;} .shadowCon{ left:0; top:0; width:100%; height:100%; background:#000; opacity:0.6; filter:alpha(opacity=60); position: fixed; z-index: 1000; } .popup-container{ position:fixed; left:50%; top:50%; z-index:1001; width:500px; height:300px; margin-left:-250px; margin-top:-150px; display:inline-block; border-radius:5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; -o-border-radius: 5px; background:#fff; border: 1px solid #f1f1f1; overflow: hidden; } .popup-title{ font-size:16px; text-align:center; line-height:42px; color:#111; background:#fff; position:absolute; left:0; top:0; z-index:999; width:100%; } .popup-content{ font-size:14px; padding:15px 20px; color:#555; height:100%; overflow:auto; text-align:left; padding-bottom:46px; padding-top:42px; } .btn-close{ position:absolute; right:10px; top:3px; font-size:24px; cursor:pointer; z-index:1000; } .btn-box{ border-top:1px solid #f1f1f1; text-align:right; position:absolute; left:0; background:#fff; bottom:0; z-index:999; width:100%; } .popup-container .btn-p{ border:1px solid #f1f1f1; border-radius:3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; -o-border-radius: 3px; box-sizing:border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; line-height:30px; margin:7px 10px 7px 0px; padding:0 10px; display:inline-block; text-align:center; font-size:14px; cursor:pointer; color:#222; } .exhibitionWarp{clear:both;min-height:100px;} .exhibitionWarp h4{ display: block; -webkit-margin-before: 1.33em; -webkit-margin-after: 1.33em; -webkit-margin-start: 0px; -webkit-margin-end: 0px; font-weight: bold; } .exhibitionWarp img{width: 170px;display:inline-block;float:left; margin:0px 20px 20px 0px;} .exhibitionWarp p{ line-height: 23px; padding-top: 2px; } .animatedIn{ -webkit-animation-duration: .45s; -moz-animation-duration: .45s; -o-animation-duration: .45s; animation-duration: .45s; -webkit-animation-name: linearBottom; -moz-animation-name: linearBottom; -o-animation-name: linearBottom; animation-name: linearTop; } @keyframes linearTop { 0%{ -webkit-transform: translate3d(0,80px,0); -moz-transform: translate3d(0,80px,0); -o-transform: translate3d(0,80px,0); transform: translate3d(0,80px,0); opacity: 0; filter:alpha(opacity=0); } 100%{ -webkit-transform: translate3d(0,0,0); -moz-transform: translate3d(0,0,0); -o-transform: translate3d(0,0,0); transform: translate3d(0,0,0); opacity: 1; filter:alpha(opacity=100); } } </style></head><body> <div class="shadowCon"></div> <div class="popup-container animatedIn"> <div class="popup-title">Company latest exhibition activities</div> <div class="popup-content"> <div class="content"> <div class="exhibitionWarp"> <h4>IFA in the autumn of 2017</h4> <img src="http://www.qianduanzhan.com/170x140?text=IFA"/> <p>Date: 3th-6th Sep,2017</p> <p>Place:Berlin, Germany</p> <p>Booth No.: 111,Hall S7.2</p> </div> <div class="exhibitionWarp"> <h4>Global Sources Exhibitions in the autumn of 2017</h4> <img src="http://www.qianduanzhan.com/170x140?text=Global Sources" /> <p>Date: 18th-21th Oct,2017</p> <p>Place:HongKong</p> <p>Booth No.: 10L09</p> </div> <div class="exhibitionWarp"> <h4>CES in the autumn of 2018</h4> <img src="http://www.qianduanzhan.com/170x140?text=CES" /> <p>Date: 9th-12th Jan,2018</p> <p>Place:Las Vegas,USA</p> <p>Hall: LVCC South Hall 4</p> <p>Booth No.: 36915</p> <p> </p> <p> </p> </div> </div> </div> <div class="btn-close">×</div> <div class="btn-box"> <p class="btn-p">Close</p> </div> </div> <script src="http://www.qianduanzhan.com/libs/jquery/2.1.4/jquery.min.js"></script> <script> $(function () { $(".btn-close").click(function () { $(".popup-container").hide(); $(".shadowCon").hide(); }); $(".btn-p").click(function () { $(".popup-container").hide(); $(".shadowCon").hide(); }); }); </script></body></html>
阅读全文
0 0
- Jquery加载完成后弹出层
- js/jquery 图片加载完成后
- JQuery页面加载完成后执行事件
- jquery页面加载完成后执行方法
- 界面加载完成后自动弹出软键盘
- android当activity加载完成后自动弹出popWindow
- jQuery实现点击弹出层3秒后自动消失
- jQuery 弹出层 弹出对话框
- 用jQuery在图片加载完成后改变图片大小
- jquery 页面加载完成后自动调用方法
- jquery 实现页面加载完成后,自动执行
- jQuery-iframe加载完成后触发的事件监听
- jquery mobile 加载完成后,自动返回顶部
- jquery实现弹出层
- jQuery 弹出提示层
- jQuery 弹出层实例
- jQuery jqModal弹出层
- jquery弹出层实例
- 基于Servlet&Jsp的网上书店设计(二)
- CSU-ACM2017暑假集训比赛2 D
- Activity Hook解析
- spoj VLATTICE Visible Lattice Points 莫比乌斯函数入门
- Android Studio Debug调试技巧
- Jquery加载完成后弹出层
- C++关系运算和逻辑运算
- redis服务器允许远程主机访问
- 英特尔的安腾 (Itanium) 架构处理器是怎么失败的?
- Makefile学习(1)
- poj3268(单源最短路)
- Zeppelin源码分析-Interpreter 相关类(1)
- 淘淘摘苹果
- 方法的重载