我用我的web应用程序的下拉,但是当我跑,我看到文本对齐方式未设置为中心,我的下拉列表中的HTML代码是这样的:
为什么我的asp.net下拉列表文本对齐没有设置为中心?
<asp:DropDownList ID="DropDownList1" runat="server" style="width:50%;text-align:center;" forecolor="White" BackColor="#2E3842">
<asp:ListItem>یزد</asp:ListItem>
<asp:ListItem>aaa</asp:ListItem>
<asp:ListItem>bbb</asp:ListItem>
</asp:DropDownList>
如何设置文本中央?
[Center align down down list text]可能重复(http://stackoverflow.com/questions/21665137/centre-align-drop-down-list-text) – MusicLovingIndianGirl
[.net dropdownlist可能的重复对齐文本](http://stackoverflow.com/questions/761022/net-dropdownlist-align-text) –