我的 aspx 文件中有一个 DropDownList,如下所示:
<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的解决方案。
感谢您的回复!