【发布时间】:2018-04-24 20:25:39
【问题描述】:
我在我的网络应用程序中使用下拉菜单,但是当我运行时我看到文本对齐未设置为中心,我的下拉列表 html 代码是这样的:
<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>
如何将文本设置为居中?
【问题讨论】: