Html asp:BulletedList不一致<;ul>;空的时候
我在div“style=display:table”中有两个asp:BulletedList。其思想是其中一个将包含asp:ListItems,用户可以在它们之间拖放以创建另一个选定项目列表 这是密码Html asp:BulletedList不一致<;ul>;空的时候,html,formatting,alignment,listitem,bulletedlist,Html,Formatting,Alignment,Listitem,Bulletedlist,我在div“style=display:table”中有两个asp:BulletedList。其思想是其中一个将包含asp:ListItems,用户可以在它们之间拖放以创建另一个选定项目列表 这是密码 <div style="width:90%; display:table; border:1px solid green"> <div style="width:100%; display:table-row"> <div style="wid
<div style="width:90%; display:table; border:1px solid green">
<div style="width:100%; display:table-row">
<div style="width:35%; display:table-cell; border:1px solid gray">
<asp:BulletedList runat="server" ID="blAvailableDocuments" Height="150px" BorderStyle="Solid" BorderWidth="1px" BorderColor="red">
<asp:ListItem Text="AvailableLI1">
</asp:ListItem>
<asp:ListItem Text="AvailableLI2">
</asp:ListItem>
</asp:BulletedList>
</div>
<div style="width:30%; display:table-cell; text-align:center">
<asp:Button runat="server" Text=">>" ID="btnAddAll" OnClientClick="AddAll(); return false" /><br /><br />
<asp:Button runat="server" Text="<<" ID="btnRemoveAll" OnClientClick="RemoveAll(); return false" />
</div>
<div style="width:35%; display:table-cell; border:1px solid gray">
<asp:BulletedList runat="server" ID="blSelectedDocuments" Height="150px" BorderStyle="Solid" BorderWidth="1px" BorderColor="Gray">
<asp:ListItem Text="SelectedLI1">
</asp:ListItem>
<asp:ListItem Text="SelectedLI2">
</asp:ListItem>
</asp:BulletedList>
</div>
</div>
</div>
元素是否有ID的条件是阻止列表本身被拖动,我认为这是错误的,这符合我的需要,但请注意,我遇到的问题没有这个
(由于某种原因,现在还不能在这里张贴照片)
拖拽和放下工作除了。。。当我拖放以使任何一个BulletedList中都没有剩余的ListItems时,就会发生这种情况
有什么想法吗,穆查斯·格拉齐亚斯(muchas grazias)和丹克(danke)愿意帮忙。答案如此简单,令人非常恼火,甚至没有人告诉我 我使用float:left、float:right和margin:auto作为中心,而不是display:table/row/cell
<div style="width:35%; border:1px solid gray; float:left">
<asp:BulletedList runat="server" ID="blAvailableDocuments" RenderWhenDataEmpty="true" Height="150px">
</asp:BulletedList>
</div>
<div style="width:35%; border:1px solid gray; float:right">
<asp:BulletedList runat="server" ID="blSelectedDocuments" RenderWhenDataEmpty="true" Height="150px">
</asp:BulletedList>
</div>
<div style="width:30%; text-align:center; margin:auto">
<asp:Button runat="server" Text=">>" ID="btnAddAll" OnClientClick="AddAll(); return false" UseSubmitBehavior="false" /><br /><br />
<asp:Button runat="server" Text="<<" ID="btnRemoveAll" OnClientClick="RemoveAll(); return false" UseSubmitBehavior="false" />
</div>
花了我三天的时间。。。。三天
<div style="width:35%; border:1px solid gray; float:left">
<asp:BulletedList runat="server" ID="blAvailableDocuments" RenderWhenDataEmpty="true" Height="150px">
</asp:BulletedList>
</div>
<div style="width:35%; border:1px solid gray; float:right">
<asp:BulletedList runat="server" ID="blSelectedDocuments" RenderWhenDataEmpty="true" Height="150px">
</asp:BulletedList>
</div>
<div style="width:30%; text-align:center; margin:auto">
<asp:Button runat="server" Text=">>" ID="btnAddAll" OnClientClick="AddAll(); return false" UseSubmitBehavior="false" /><br /><br />
<asp:Button runat="server" Text="<<" ID="btnRemoveAll" OnClientClick="RemoveAll(); return false" UseSubmitBehavior="false" />
</div>