我有一个div中的标签,checkboxlist和datagridview。我已经使用内联CSS来移动项目。但它不像我所期望的那样工作。我如何移动它们?我想要连续三个项目。下面我添加了我的aspx代码。如何将项目移动到div内的左侧?
<div id="div2" style="width:100%; height:auto; margin-top:30px">
<div id="div21" style="width: 50%; height:auto">
<div id="div211" style=" width:15%; height:auto">
<asp:Label ID="lblKPI" Text="KPI :" runat="server" style="margin-top:10px; margin-left:20px">
</asp:Label>
</div>
<div id="div212" style=" width:60%; height:auto; float:left">
<asp:CheckBoxList ID="chklstKPI" style="width:auto; height:auto" runat="server">
</asp:CheckBoxList>
</div>
</div>
<asp:GridView ID="GridView1" runat="server" style="float:left">
</asp:GridView>
</div>
试'的text-align:左;'在格对齐的所有元素里面 – Ramki
可以为您提供'查看HTML的源代码?这样我们可以看看这个问题。 – BNN
更好地使用三列表更好的作品 – Pravin