alert提示太难看了,想换一个用jquary写的漂亮的提示框
解决方案 »
- 关于用JQuery写标题展开的问题(效果类似微博点击标题展开内容)
- 怎样动态创建一个 student:{name: "jim"} 这样的object?
- 各位大哥,小女有个问题关于 , 向大家请教,有点急
- 【一条语句,firefox可以正确显示,ie无反应,我疯啊!!!!】
- 大侠们帮我看看这段代码错在哪里
- 有关脚本语言?
- 父子窗口之间的交互怎么 实现??
- 高分求助!!如何拖动列表项?
- 请问 function除了会写在js和jsp里面还有可能在那里
- Ueditor图片上传问题,求高手解答,万分感谢!
- jquery的tab效果在asp.net中刷新后,如何保持当前页面呢?
- jquery问题求解释在线等
http://www.planeart.cn/demo/artDialog/
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style>
body{ margin:0; padding:0; font-size:12px}
.main{ width:960px; margin:auto}
.windows{ width:260px; height:180px; display:none; position:absolute; top:50%; left:50%; z-index:9999; background-color:#fff; margin:-90px 0 0 -130px}
.title{ width:260px; line-height:24px; float:left; background:#CCC}
.close{ float:right; margin-right:5px; cursor:pointer}
.mask{ width:100%; height:100%; position:fixed; top:0; left:0; background:#000; _background:none; opacity:0.75; filter:alpha(opacity=75); display:none}
</style>
<script src="js/jquery-1.6.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("#btn").click(function(){
$(".windows").show();
$(".mask").show();
})
$(".close").click(function(){
$(".windows").hide();
$(".mask").hide();
})
})
</script>
</head>
<body><div class="main"> <button id="btn">弹窗</button>
</div><div class="windows">
<span class="title"><a class="close">关闭</a></span>
</div>
<div class="mask"></div></body>
</html>
现写的,布局什么的就自己写吧