一个很简单的弹窗
2015-06-19 10:37
253 查看
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> <script src="jquery-1.7.1.js"></script> <style type="text/css"> #divpanel { background-color: white; display: none; position: absolute; left: 380px; top: 200px; width: 500px; height: 300px; } #bg { background-color: #808080; opacity: 0.6; display: none; position: absolute; left: 0px; top: 0px; height: 100%; width: 100%; } </style> <script type="text/javascript"> $(function () { $("#btn1").click(function () { $("#divpanel,#bg").show(); }); $("#closewin").click(function () { $("#divpanel,#bg").hide(); }); }) </script> </head> <body> <input type="button" name="name" value="弹窗 " id="btn1" /> <div id="bg"></div> <div id="divpanel"> <div id="closewin" style="float: right; cursor: pointer">关闭</div> </div> </body> </html>
相关文章推荐
- GC算法之串行并行并发
- 速度销毁 修改门灯并寻找子物体发送代码 更换纹理图片 物体添加删除代码
- 关于 redis、memcache、mongoDB 的对比
- [转帖]易飞9.0.9注册机
- three.js 入门
- 重载背景的对话框上的picture双缓冲绘图
- ASP.NET MVC中的Session设置
- Native App执行JS
- 6.824 Lab4: Cache Locks回顾
- 欢迎使用CSDN-markdown编辑器
- 终于解决企业账号开发支付问题
- [数学故事]国王的重赏
- python学习笔记之小小购物车
- WPF 程序启动显示为通知区域的图标方法
- Visual Studio TFS Branching and Merging Guidance
- oracle 表的管理(数据类型,表创建删除,数据CRUD 操作)
- Fatal NI connect error 12170
- iOS 修改navigationbar的高度
- 详细分析使用AngularJS编程中提交表单的方式
- MTK开机向导完成后直接跳转到默认网页