HTML CSS 遮罩效果!
2009-06-16 14:55
239 查看
注:偷学别人的,由于暂时没时间修改,故先存着
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
<style type="text/css">
#cover
{
position:absolute;
right:0px;
bottom:0px;
width:100%;
height:100%;
background-color:#D6E6FF;
filter:alpha(opacity=55);
-moz-opacity: 0.55;
opacity: 0.55;
display:none;
z-index:5;
}
#tb_window
{
width:450px;
height:220px;
border:2px #6699CC solid;
z-index:2;
background:#FFFFFF;
margin:200px auto;
}
#Button1
{
margin:300px 47%;
}
</style>
<script type="text/javascript">
function show(message)
{
document.getElementById("messageId").innerHTML=message;
document.getElementById("Button1").style.display="none";
document.getElementById("cover").style.display="block";
}
function hidden()
{
document.getElementById("cover").style.display="none";
document.getElementById("Button1").style.display="block";
}
</script>
</head>
<body style="margin:0 0 0 0; padding:0 0 0 0;">
<form id="form1" runat="server">
<div id="cover" style="left: 0px; top: 0px;">
<div id="tb_window" style="margin-left:30%;">
<!--title-->
<div style="background:#6699CC; text-align:right; height:28px; padding:5px;">
<label id="title" style="float:left; font-size:15px; color:blue;">value</label>
<img onclick="javascript:hidden();" src="image/close.gif" style=" border-style:none;" />
</div>
<!--content-->
<div style="padding-left:6px;">
<p>省/直辖市</p>
<div id="messageId">
广东 北京
</div>
</div>
</div>
</div>
<div>
<h1 style="text-align: center">
测试透明</h1>
<input id="Button1" type="button" value="弹出遮罩层" onclick="show('广东 江苏');" />
</div>
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
<style type="text/css">
#cover
{
position:absolute;
right:0px;
bottom:0px;
width:100%;
height:100%;
background-color:#D6E6FF;
filter:alpha(opacity=55);
-moz-opacity: 0.55;
opacity: 0.55;
display:none;
z-index:5;
}
#tb_window
{
width:450px;
height:220px;
border:2px #6699CC solid;
z-index:2;
background:#FFFFFF;
margin:200px auto;
}
#Button1
{
margin:300px 47%;
}
</style>
<script type="text/javascript">
function show(message)
{
document.getElementById("messageId").innerHTML=message;
document.getElementById("Button1").style.display="none";
document.getElementById("cover").style.display="block";
}
function hidden()
{
document.getElementById("cover").style.display="none";
document.getElementById("Button1").style.display="block";
}
</script>
</head>
<body style="margin:0 0 0 0; padding:0 0 0 0;">
<form id="form1" runat="server">
<div id="cover" style="left: 0px; top: 0px;">
<div id="tb_window" style="margin-left:30%;">
<!--title-->
<div style="background:#6699CC; text-align:right; height:28px; padding:5px;">
<label id="title" style="float:left; font-size:15px; color:blue;">value</label>
<img onclick="javascript:hidden();" src="image/close.gif" style=" border-style:none;" />
</div>
<!--content-->
<div style="padding-left:6px;">
<p>省/直辖市</p>
<div id="messageId">
广东 北京
</div>
</div>
</div>
</div>
<div>
<h1 style="text-align: center">
测试透明</h1>
<input id="Button1" type="button" value="弹出遮罩层" onclick="show('广东 江苏');" />
</div>
</form>
</body>
</html>
相关文章推荐
- html+css源码之实现登录弹出框遮罩层效果
- html+css源码之实现登录弹出框遮罩层效果
- HTML+CSS实现图片下半部分遮罩文字效果(仿微信推送信息的图片文字效果)
- HTML+CSS实现缓冲效果
- jQuery+css+html实现页面遮罩弹出框
- .net MVC框架下利用css+js实现遮罩效果
- html/CSS弹出式效果代码分析学习-我的各种站点足迹
- HTML中 css实现滚动页面时固定页面其中一栏的效果
- JS+HTML+CSS实现轮播效果
- DIV+CSS(网页遮罩效果)
- 同样的CSS,放在HTML内和外部文件中,以及放在不同的目录时,效果就不一样了
- html、css和jquery相结合实现简单的进度条效果实例代码
- 使用CSS+JavaScript或纯js实现半透明遮罩效果的实例分享
- css html 鼠标手型,鼠标形状,鼠标效果,样式
- html+css+js简单实现图片轮播效果
- css 滤镜效果主要对HTML标记设置滤镜效果
- html css jquery怎么做开门的效果
- html css 标题背景 折边凸显效果,有点意思,记录下
- HTML+CSS+JS实现二级菜单的效果
- 使用html+css+js技术编写一个完整的表格列表内容中 复选框的全选 反选效果