+ -
当前位置:首页 → 问答吧 → 求解一个ext.net页面div定位的问题

求解一个ext.net页面div定位的问题

时间:2011-09-14

来源:互联网

我想用ext.net实现 http://www.jb51.net/css/17746.html 这个页面的例子效果

但是我这样确不行

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <title>无标题页</title>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
   
<style type="text/css">
body{margin:0;border:0; height:100%;overflow-y:auto;}
#test {display:block; bottom:3px; right:3px; position:fixed;}
* html #test {position:absolute; right:18px}
* html{overflow-x:auto; overflow-y:hidden;}

</style>
   
   
</head>
<body>
   
  <form id="form1" runat="server">
   
  
  <ext:ResourceManager runat="server">
  </ext:ResourceManager>
   
  <div >
  <ext:Panel runat="server" AutoHeight="true" >
  <items>
  <ext:Label ID="Label1" runat="server" Text="Label1">
  </ext:Label>
   
  <ext:Radio ID="Radio1" runat="server" BoxLabel="Radio1">
  </ext:Radio>
  <ext:Radio ID="Radio2" runat="server" BoxLabel="Radio2">
  </ext:Radio>
  <ext:Radio ID="Radio3" runat="server" BoxLabel="Radio3">
  </ext:Radio>
  <ext:Radio ID="Radio4" runat="server" BoxLabel="Radio4">
  </ext:Radio>
   
  <ext:Label ID="Label2" runat="server" Text="Label2">
  </ext:Label>
   
  <ext:Radio ID="Radio5" runat="server" BoxLabel="Radio1">
  </ext:Radio>
  <ext:Radio ID="Radio6" runat="server" BoxLabel="Radio2">
  </ext:Radio>
  <ext:Radio ID="Radio7" runat="server" BoxLabel="Radio3">
  </ext:Radio>
  <ext:Radio ID="Radio8" runat="server" BoxLabel="Radio4">
  </ext:Radio>
   
   
  <ext:Label ID="Label3" runat="server" Text="Label3">
  </ext:Label>
   
  <ext:Radio ID="Radio9" runat="server" BoxLabel="Radio1">
  </ext:Radio>
  <ext:Radio ID="Radio10" runat="server" BoxLabel="Radio2">
  </ext:Radio>
  <ext:Radio ID="Radio11" runat="server" BoxLabel="Radio3">
  </ext:Radio>
  <ext:Radio ID="Radio12" runat="server" BoxLabel="Radio4">
  </ext:Radio>
   
   
   
  <ext:Label ID="Label4" runat="server" Text="Label4">
  </ext:Label>
   
  <ext:Radio ID="Radio13" runat="server" BoxLabel="Radio1">
  </ext:Radio>
  <ext:Radio ID="Radio14" runat="server" BoxLabel="Radio2">
  </ext:Radio>
  <ext:Radio ID="Radio15" runat="server" BoxLabel="Radio3">
  </ext:Radio>
  <ext:Radio ID="Radio16" runat="server" BoxLabel="Radio4">
  </ext:Radio>
   
   
   
  <ext:Label ID="Label5" runat="server" Text="Label5">
  </ext:Label>
   
  <ext:Radio ID="Radio17" runat="server" BoxLabel="Radio1">
  </ext:Radio>
  <ext:Radio ID="Radio18" runat="server" BoxLabel="Radio2">
  </ext:Radio>
  <ext:Radio ID="Radio19" runat="server" BoxLabel="Radio3">
  </ext:Radio>
  <ext:Radio ID="Radio20" runat="server" BoxLabel="Radio4">
  </ext:Radio>
   
  </items>
   
  </ext:Panel>

</div>

  <div id="test">
  DIV定位
  </div> 
   
  </form>
</body>
</html>

请各位帮忙看看,谢谢!!!

作者: yangyun1123   发布时间: 2011-09-14

没用过ext.net,具体有报错没?

作者: BLUE_LG   发布时间: 2011-09-14

楼主自己定义的tag么 有什么问题?

作者: fanchuanzhidu   发布时间: 2011-09-14

当存在ext panel时,页面有滚动条,但是不能滚动。

作者: yangyun1123   发布时间: 2011-09-14

ie8下正常,ie6显示不正常

作者: yangyun1123   发布时间: 2011-09-14

热门下载

更多