我有一個像這樣在我的aspx文件一個DropDownList:如何在DropDownList中爲ListItem設置對齊方式?
<asp:DropDownList runat="server" ID="MaxRec">
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>50</asp:ListItem>
<asp:ListItem>100</asp:ListItem>
<asp:ListItem>150</asp:ListItem>
<asp:ListItem Selected="True">200</asp:ListItem>
</asp:DropDownList>
在Chrome中它呈現這樣的:
我怎麼可以設置所有listItems中的對齊方式是正確的這樣值就能正確對齊? 我試着在DropDownList和ListItems上設置style =「text-align:right」,但它沒有任何效果。 我需要一個也適用於Chrome的解決方案。
感謝您的回覆!
+1酷,它的作品,但像你說的那樣把箭頭放在另一邊,我希望有一個更好的解決方案,雖然 –