当前位置: 代码迷 >> Web前端 >> 两个DIV的相对位置(右下角)
  详细解决方案

两个DIV的相对位置(右下角)

热度:54   发布时间:2012-10-08 19:54:56.0
两个DIV的相对位置(右上角)
HTML代码如下:
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
 </head>

 <body>
  <div id=shihuan style="position:absolute; left:220px; top:104px; width:157px; height:29px;; overflow:visible;">

   <span style="position:absolute; left:0px; top:0px; width:156px; height:28px;">
    <img style="width:156px; height:28px;" src="shihuan/selecttp.png" border="0" alt="">
   </span>

  </div>


  <div id=shihuanann style="font-size:1px; position:absolute; left:367px; top:100px; width:1px; height:1px; overflow:visible;">
   <img style="width:16px; height:16px; cursor:help;" src="shihuan/note.gif" border="0" alt="">
  </div>
 </body>
</html>
  相关解决方案