日期:2014-05-17  浏览次数:20573 次

网页变形问题求教
HTML code

<div id="containerr">
  <div id="header"></div>
  <div id="mainContent">
  <table>
   <td>
    <tr>   
    <div id="sidebar" style="border:1px solid gray; ">
     <form id="form1" runat="server">
     <div> 
     <asp:TreeView ID="tree" runat="server">
     </asp:TreeView> 
     </div>
    </form> 
   </div> 
 <td style="width: 10pt"><div class="navPoint" id="switchPoint" onclick="switchSysBar()"      style="background:#666666;width:12px; background:url(images/01.gif);cursor:pointer" >3</div>   
  </td>
  <td style="WIDTH: 100%">
  <div id="content">
  <div style="z-index:9;width:100%;height:530px; border-top:1px solid gray"id="container"></div>
  </div>
  </td>
  </td>
 </tr>
</table>  
  </div>
  </div>



CSS code

body{background:#ecefff repeat top left;}
table{ margin:20px auto;}
.NiuNiutree{width:220px; height:500px; overflow:auto;}
.navPoint{COLOR:#666;CURSOR:hand;FONT-FAMILY:Webdings; FONT-SIZE:9pt}



网页用了一个树形结构,如果把table{ margin:20px auto;}删掉网页变形,不删掉树形结构变形。不知道怎没修改





------解决方案--------------------
那我来接分吧
------解决方案--------------------
等待接分
------解决方案--------------------
等待接分