soft_xiaohui 发表于 2013-2-7 16:58:25

div 透明

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
div {
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
text-align: center;
filter: alpha(opacity =   5);
background-color: gray;
}
</style>
<script type="text/javascript">
function aa() {
var myForm = document.getElementById('myForm');
alert(myForm.offsetLeft);
}
</script>
</head>
<body >
显示值。。
<br /> 显示值
<br /> 显示值
<br />
<div>adsfas</div>
<form action="?" id="myForm">
<input type="text" name="aa" /> <br /> <input type="text" /> <br />
<input type="text" /> <br /> <input type="text" /> <br /> <input
type="text" /> <br /> <input type="text" /> <br />
</form>
 
</body>
</html>
页: [1]
查看完整版本: div 透明