首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

做的这层,如何总跑位,在不同分辩率上,就跑位,求帮忙,指点上吧

2012-12-20 
做的这层,怎么总跑位,在不同分辩率下,就跑位,求帮忙,指点下吧求助,做的层,可这这几个层,总是由于在不同分

做的这层,怎么总跑位,在不同分辩率下,就跑位,求帮忙,指点下吧
求助,做的层,可这这几个层,总是由于在不同分辩率中,跑位,请求高手帮忙。
指点一下吧。
万分感谢

这是原代码

<!--#include file="inc/firstconn.asp"-->
<!--#include file="inc/GetInfo.asp"-->
<!--#include file="inc/SetInfo.asp"-->
<%
dim list1,list2
list1=Getarticleid("04")
list2=Getarticleid("05")
%>
<html>
<head>
<link rel="shortcut icon" href="favicon.ico">

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>

</title>
<meta  name="keywords" content="原件.">

<meta  name="description" content="原件"> 


<link href="css/liveay.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/menu.js"></script>

<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
top: -17px;
left: 237px;
}
#Layer2 {
position:absolute;
width:200px;
height:115px;
z-index:1;
}
#Layer3 {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 4px;
top: -33px;
}
#Layer4 {
position:absolute;
width:200px;
height:115px;
z-index:1;
}
#Layer5 {
position:absolute;
width:200px;
height:115px;
z-index:1;
}
#Layer6 {
position:absolute;
left:1225px;
top:245px;
width:95px;
height:70px;
z-index:11;
}
.style1 {
font-size: 16px;
font-weight: bold;
color: #FF0000;
}
-->
</style>




<script language="JavaScript" src="zjs/swfobject.js" type="text/javascript"></script>

<link rel="shortcut icon" href="favicon.ico">
</head>

<body>







<div id="Layer" style="Z-INDEX:10; WIDTH: 134px; POSITION: absolute; HEIGHT: 19px; top:115px; left: 199px;">
  <div id="intro" onMouseOver="MM_showHideLayers('intro','','show')" 
      style="LEFT: 120px; VISIBILITY: hidden; WIDTH: 81px; background-color:#1382CA;POSITION: absolute; TOP: 115px; HEIGHT: 32px" 
      onmouseout="MM_showHideLayers('intro','','hide')">
    <table class="xiala-table" cellspacing="0" cellpadding="0" width="100%" border="0" >
        <tr>
          <td height="24" class="font_black2" align="center" id="dian"><a href="piandosindex/index.asp?categoryid=0101" class="font_white2" target="_blank">城</a></td>
        </tr><tr>
          <td height="24" class="font_black2" align="center" id="dian"><a href="piandosindex/index.asp?categoryid=0102" class="font_white2" target="_blank">二城</a></td>
        </tr><tr>
          <td height="24" class="font_black2" align="center" id="dian"><a href="piandosindex/index.asp?categoryid=0103" class="font_white2" target="_blank">城</a></td>


        </tr>
    </table>
  </div>
 
  <div id="intro1" onMouseOver="MM_showHideLayers('intro1','','show')"style="LEFT: 330px; VISIBILITY: hidden; WIDTH: 81px;background-color:#1382CA;POSITION: absolute; TOP: 116px; HEIGHT: 52px"onmouseout="MM_showHideLayers('intro1','','hide')">
    <table class="xiala-table" cellspacing="0" cellpadding="0" width="100%" border="0" >
        <tr>
          <td height="24" class="font_black2" align="center" id="dian"><a href="piando/index.asp?categoryid=15" class="font_white2" target="_blank"> 训</a></td>
        </tr><tr>
          <td height="24" class="font_black2" align="center" id="dian"><a href="piando/index.asp?categoryid=176" class="font_white2" target="_blank"> 训</a></td>
        </tr><tr>
          <td height="24" class="font_black2" align="center" id="dian"><a href="piando/index.asp?categoryid=177" class="font_white2" target="_blank"> 训</a></td>
        </tr>
    </table>
  </div>
 
 
 
 
 
   
  <div id="xinxi0" onMouseOver="MM_showHideLayers('xinxi0','','show')" 
      style="LEFT: 395px; VISIBILITY: hidden; WIDTH: 91px; background-color:#1382CA;POSITION: absolute; TOP: 116px; HEIGHT: 52px" 
      onmouseout="MM_showHideLayers('xinxi0','','hide')">
    <table class="xiala-table" cellspacing="0" cellpadding="0" width="100%" border="0" >
        <tr>
          <td height="24" class="font_black2" align="center" id="dian"><a href="musicinformation/new.asp" class="font_white2" target="_blank">最新消息</a></td>
        </tr><tr>
          <td height="24" class="font_black2" align="center" id="dian"><a href="musicinformation/new.asp?classid=0102" class="font_white2" target="_blank">资讯</a></td>
        </tr><tr>
          <td height="24" class="font_black2" align="center" id="dian"><a href="musicinformation/new.asp?classid=0103" class="font_white2" target="_blank">信息</a></td>
        </tr><tr>
          <td height="24" class="font_black2" align="center" id="dian"><a href="musicinformation/new.asp?classid=0104" class="font_white2" target="_blank">顾问</a></td>
        </tr>
    </table>
  </div>
</div>

  


    
[解决办法]
你这是绝对定位 所以不同分辨率下是不同的位置哦

你可以换成JS 获取某个控件的TOP LEFT 然后赋值给你要的层。
也可以做出相对定位 也就是在你要浮动的层外面在顶一个一个层。
[解决办法]

引用:
你这是绝对定位 所以不同分辨率下是不同的位置哦

你可以换成JS 获取某个控件的TOP LEFT 然后赋值给你要的层。
也可以做出相对定位 也就是在你要浮动的层外面在顶一个一个层。


我晕 打了好多错别字,等等:

你这是绝对定位 所以不同分辨率下是不同的位置哦

你可以换成JS 获取某个控件的TOP LEFT 然后赋值给你要的层。
也可以做成相对定位 也就是在你要浮动的层外面在弄一个层。
[解决办法]
。。比较高深,能具体的写一下代码吗,谢谢
[解决办法]
绝对定位,不会随着你的分辨率改变而改变的,楼主应该是用dw拖出来的效果。建议楼主要做页面可以考虑考虑盒子模型,浮动(float)来做,绝对定位,只会去定位一些小的控件的时候才好用。
[解决办法]
虽然问题没有解决,但很感谢各位大侠的热心帮助。
非常感谢

热点排行
Bad Request.