Label在页面上的定位问题 本帖最后由 a594425779 于 2012-10-19 17:47:57 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 设置label的父元素position:relative;,再设置label为绝对定位,此时每个label的top和left是根据父元素的左上角(0,0)点来定的。 能写个简单的div+label的例子吗 感激不尽 <!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 id="Head1" runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div id="div1" style="float: right"> <div id="div2" style="position: relative; width: 400px; height: 300px; background: #ccc"> <asp:Label ID="Label1" runat="server" Text="Label" Style="position: absolute; left: 100px; top: 100px"></asp:Label> <asp:Label ID="Label2" runat="server" Text="Labe2" Style="position: absolute; left: 200px; top: 200px"></asp:Label> </div> </div> </form></body></html> 请教:这种绑定有错误还是缺少什么必须的步骤? 查询A表数据插入到B表 急急!access网页问题! .net项目 一些常用的文件夹命名是什么 为什么dataset不能插入~~~~~ 网上购物系统中怎样用下图的方式读取出两级商品类别名称? 请问动态查找控件的问题 DataList 生成多余的<tr>如何去掉 发布IIS Excel导出失败 怎样让控件居中? C#网站设计中控件怎么移动? 关于repeater的最后一项
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div id="div1" style="float: right">
<div id="div2" style="position: relative; width: 400px; height: 300px; background: #ccc">
<asp:Label ID="Label1" runat="server" Text="Label" Style="position: absolute; left: 100px; top: 100px"></asp:Label>
<asp:Label ID="Label2" runat="server" Text="Labe2" Style="position: absolute; left: 200px; top: 200px"></asp:Label>
</div>
</div>
</form>
</body>
</html>