看嘛 ,如何使这两个CSS在任何分辨率下都居中显示! 你该晓得哦?呵呵
代码是这样的:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!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=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:197px;
top:39px;
width:257px;
height:163px;
z-index:1;
}
#Layer2 {
position:absolute;
left:194px;
top:219px;
width:263px;
height:176px;
z-index:2;
}
-->
</style>
</head>
<body>
<div id="Layer1"></div>
<div id="Layer2"></div>
</body>
</html>