图层定位可使用页面内框架<iframe>...</iframe>

解决方案 »

  1.   

    what browser are you using? if you are using IE, 
    1. 
    <div style="position:absolute;left:5cm;top:5cm">hello world</div>2. you need to use document.all, see
    http://msdn.microsoft.com/workshop/author/dhtml/reference/collections/all.asp?frame=true
      

  2.   

    不知道你的不变形是什么意思,看个例子:
    <HTML>
    <script>
    function divcenter(){
    document.all.mxh.style.left=(Math.round((document.body.scrollWidth-200)/2)).toString()+"px"
    }
    </script>
    <body onload="divcenter()" onresize=divcenter()>
    <table width=100%>
    <tr>
    <td>test
    </td>
    </tr>
    </table>
    <div id=mxh style="position:absolute;left:200px;top:30px;width:200px;height:200px;background-color:navy;border:2px;color:#FFFFFF">测试文字</div>
    </HTML>2:document.layer是NS里用的,可以到NETSCAPE网站找到资料。你可以用NETSCAPE6+的浏览器,所支持的属性有:Netscape 6 支持的对象和属性列表
    http://www.csdn.net/Develop/Read_Article.asp?Id=5361
      

  3.   

    有关LAYERS,可参见:
    http://developer.netscape.com/docs/manuals/communicator/dynhtml/dynamici.htmhttp://developer.netscape.com/docs/manuals/htmlguid/tags12.htm#1703974http://developer.netscape.com/docs/manuals/js/client/jsref/layer.htmhttp://developer.netscape.com/docs/manuals/js/client/jsref/contents.htm
      

  4.   

    <div style="position:absolute;left:5cm;top:5cm">hello world</div>
    如果想在分辨率变化但图层不边的话,那么你应该把图层放在表里,在对单元各进行样式设定!
    .layer { position: relative; clip: rect( )}
    就OK了document.layer属性你可以去他们推荐的站点进行查找!!
    全是英文的,我是不怎么看的懂,如果有中文的网站给我介绍一下!!