我用我的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) –