DIV层遮罩效果原理:
使用一个比需要被遮罩的div层大一些的透明的另一个div层覆盖掉需要被遮罩的div层
这样就不能对底层 div里的内容进行操作了
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<div id="ly" style="position: absolute; top: 0px; filter: alpha(opacity=60); background-color: #777;
z-index: 2; left: 0px; display: block; width:500px;height:500px;">
</div>
<div style="width:400px;height:400px;z-index:1;border:red solid 1px;position:absolute;top:20px;left:20px;"><input type="text" value="ddd" /></div>
</body>
</html>