开发者

HTML select tag text direction

开发者 https://www.devze.com 2023-01-22 22:18 出处:网络
There is a way to create a right-to-left text-direction select tag in HTML? The开发者_Go百科 following works in IE, but in Firefox only align the text and in Chrome nothing...

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

The开发者_Go百科 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>


It works fine for me on Chrome 8.x dev. I'm sure it is a bug that's already fixed.

See: http://jsfiddle.net/Qjxv6/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号