我想将我的.net下拉列表中的文本对齐到右侧。使用CssClass我能够在Firefox中将文本对齐到右侧。.net dropdownlist align text
IE不会将文本对齐到它与左边对齐的右边。 我读过IE 6不支持这个。
- 这是真的吗?
我使用的是IE7,但我的大部分用户都是在IE 6中,所以都需要工作。
<asp:DropDownList ID="ddlNomination" Width="250px" CssClass="ddlnomination"
runat="server" DataSourceID="Azoa" DataTextField="nomination_type"
DataValueField="nomination_type">
<asp:ListItem> </asp:ListItem>
</asp:DropDownList>
CSS
.ddlnomination
{
text-align:right;
}