[英]Text-aligning CSS not working in Chrome or IE. Yes in FireFox
I try all the different code for center aligning and not work in chrome or IE. 我尝试使用所有不同的代码进行中心对齐,但无法在chrome或IE中工作。 Here is my code. 这是我的代码。 I'm trying to align center text in the dropbox. 我正在尝试在保管箱中对齐中心文本。 Any suggestion? 有什么建议吗?
.dropdownmenu,
.dropdownmenu option
{
text-align:center!important;
}
<select class="dropdownmenu" name="memo[How did you hear about us?]" ">
<option value="Relativity website">Relativity Website</option>
<option value="Internet search">Internet Search</option>
</select>
In my remember, modify select
style is only allowed by Firefox 在我的记忆中,修改select
样式仅受Firefox允许
You can walk around by using a jQuery plugin which simulates a select with div
and others tags 您可以使用jQuery插件四处走动,该插件可模拟div
和其他标签的选择
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.