我试图在 Ie 的中心选择一个元素。但它不起作用。我该怎么做?
<style type="text/css">
select
{
width: 400px;
text-align: center;
}
</style>
<asp:ListBox ID="lsb" runat="server" Width="250px">
<asp:ListItem Text="text" />
<asp:ListItem Text="text" />
<asp:ListItem Text="text" />
<asp:ListItem Text="text" />
<asp:ListItem Text="text" />
<asp:ListItem Text="text" />
</asp:ListBox>
最佳答案
无法在 Internet Explorer 上将样式应用到元素中作为选择。 悲伤,但却是事实。
关于css - IE 选择文本居中对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29546035/