当前位置:编程学习 > C#/ASP.NET >>

DW中关于层自动居中问题

我是用层做的网页,在层里加内容,做完后,页面居中不了.网上的办法都用过,不行,请各位高手,快来指教,小弟急用~~~
</head>
<body>
<div id="Layer10" style="position:absolute; width:803px; height:25px; z-index:3; left: 227px; top: 140px; font-size: 16px; color: #0066CC;">
  <div align="center" class="style1">
    <div align="left" class="style3 style1">| <a href="default.htm">首页</a> | 企业新闻 | <a href="ERPSC.htm">ERP工作手册</a> | <a href="ZLTXWJ.htm">质量体系文件</a> | <a href="YYRJ.htm">应用软件</a> | <a href="QDJH.htm">驱动集合</a> | 20周年活动 |</div>
  </div>
</div>
<div id="Layer1" style="position:absolute; width:1024px; height:133px; z-index:2; top: 4px; left: 6px;"><img src="头副本.jpg" width="1024" height="133" border="0">
  more...</div>
</div>
<div id="Layer2" style="position:absolute; width:216px; height:27px; z-index:4; top: 136px; font-family: ; left: 6px; visibility: visible;"汉仪大黑简", ",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",","汉仪大宋简", ",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",",","华文彩云"; font-size: 24px; color: #FF0000;">
  <body onload=startclock()>
<form name="clock">
<script language="JavaScript">
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;}
function startclock () {
stopclock();
showtime();}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = now.getYear()+"年"+(now.getMonth()+1)

+"月"+now.getDate()+"日" +((hours >= 12) ? " 下午 " : " 上午 " )
timeValue += ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.clock.thetime.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;}
</script>
<input name="thetime" style="font-size: 12pt;color:#0066FF;border:1px 

solid #FFFFFF; ; " size="26"></form>
</div>
<table width="200" border="1">
  <tr>
    <td> </td>
  </tr>
</table>网页内容
</div>
</body>
</html>请各位高手详细给做一下说明,我是一菜鸟,如说用CSS控制,请详细说一下
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,