HTML选择标签文字方向 [英] HTML select tag text direction

查看:138
本文介绍了HTML选择标签文字方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一种方法可以在HTML中创建从右到左的文本方向选择标签?

以下在IE中工作,但在Firefox中只对齐文本和Chrome没有什么...

 < select dir = RTL > 
< select style =direction:rtl;>


解决方案

在Firefox中,我认为您还需要设置 bidi-override

 < select dir =rtlstyle =direction:rtl; unicode-bidi:bidi-override;> 
< option style =direction:rtl; unicode-bidi:bidi-override;> test< / option>
< / select>


There is a way to create a right-to-left text-direction select tag in HTML?

The following works in IE, but in Firefox only align the text and in Chrome nothing...

<select dir="rtl">
<select style="direction: rtl;">

解决方案

In Firefox I think you'll also need to set bidi-override:

<select dir="rtl" style="direction: rtl; unicode-bidi: bidi-override;">
    <option style="direction: rtl; unicode-bidi: bidi-override;">test</option>
</select>

这篇关于HTML选择标签文字方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆