css弹出框 提示信息
2014-03-19 16:07
190 查看
<style type="text/css"> #alertBox{ position:absolute; display:none; width:100%; height:100%; left:0px; top:0px; z-index:99; background: rgba(255, 255, 255, 0.1);} #alertBox #alertBoxShadow{ position:absolute; width:200px; height:auto; left:50%; top:50%; margin-left:-100px; margin-top:-80px; background: rgba(255, 255, 255, 0.9); background-size: 100% 100%; z-index:100; padding-bottom:30px;} #alertBox #text{ margin:20px; font-size:1.0em;} #alertBox #alertBoxBtn{ position:absolute; right:10%; bottom:10px; width:78px; height:26px; background: url("../img/ChoiceBtn.png") no-repeat; background-size: 100% 100%;} </style> <script type="text/javascript"> function CloseBox(){ document.getElementById('alertBox').style.display="none"; } function alertBox(value){ document.getElementById('alertBox').style.display="block"; // alert(value); document.getElementById('text').innerHTML=value; } </script> <div id="alertBox"> <div id="alertBoxShadow"> <div id="text"></div> <button id="alertBoxBtn" onClick="CloseBox();">确定</button> </div> </div>
相关文章推荐
- java弹出窗口提示信息
- 锁屏状态下点亮屏幕,并弹出闹钟提示信息
- [转]页面外仿 MSN 弹出提示信息的脚本改进版(仅能在IE下运行!)
- 实现联系人列表滑动显示提示信息 以及弹出选择菜单
- 如何在使用了updatepanel后弹出提示信息
- 单纯使用CSS实现动态提示信息
- 册除单条供求信息,并弹出册除提示
- asp.net弹出提示信息的几种方式
- 安卓提示toast,避免相同信息重复弹出
- 将Capicom调用代码封装到ActiveX——解决javascript调Capicom读取数字证书信息时,IE弹出安全提示的问题
- Struts2弹出信息提示窗口
- 定时弹出提示信息 不刷新页面。
- css 鼠标放上图片变换以及输入框提示信息
- js+css制作悬浮提示层弹出特效
- 一个不错的可拖动层遮罩加ALPHA滤镜(点击弹出后背景变浅色,信息提示框效果)
- 在struts2.0的action中如何弹出信息提示
- Android Studio Gradle编译项目报错弹出一个提示框没有具体的错误信息
- Asp.Net alert弹出提示信息的几种方法总结
- Asp.net 后台弹出提示信息方法
- MyEclipse .java .jsp .js页面 自动弹出信息提示框