【问题标题】:HTML select tag text directionHTML 选择标签文本方向
【发布时间】:2011-05-02 18:44:30
【问题描述】:

有没有办法在 HTML 中创建从右到左的文本方向 select 标记?

以下内容在 IE 中有效,但在 Firefox 中仅对齐文本而在 Chrome 中则没有...

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

【问题讨论】:

    标签: html css right-to-left bidi


    【解决方案1】:

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

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

    【讨论】:

      【解决方案2】:

      它在 Chrome 8.x 开发中对我来说很好用。我确定这是一个已经修复的错误。

      见:http://jsfiddle.net/Qjxv6/

      【讨论】:

      • 大部分普通用户都在使用Chrome 7。有没有解决办法?那么火狐呢?
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-01-16
      • 2020-06-17
      • 1970-01-01
      • 1970-01-01
      • 2016-02-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多