如何确保选择选项文本在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屋!
查看全文