如何确保选择选项文本在 IE 中居中对齐? [英] how to make sure select option text align in the center in IE?
本文介绍了如何确保选择选项文本在 IE 中居中对齐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下 CSS 在 FF 中有效,但在 IE 中无效(至少 8.0),如何确保 IE8.0 中的文本居中对齐?谢谢!!!
The following CSS works in FF, but not in IE(at least 8.0), how can I make sure that the text align in the center for IE8.0? Thanks!!!
select, option {
text-align: center;
}
推荐答案
遗憾的是,您无法更改 IE 中 SELECT
项的对齐方式,尽管让我感到惊讶的是,即使 IE 8 也保持如此糟糕习惯.
Unfortunately, you can't change the alignment of SELECT
items in IE, although it surprises me that even IE 8 keeps this bad habit.
这篇关于如何确保选择选项文本在 IE 中居中对齐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文