求解一个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>
请各位帮忙看看,谢谢!!!
但是我这样确不行
<!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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28