选择方向rtl不适用于Firefox [英] Select with direction rtl doesn't work on Firefox

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

问题描述



这就是我在Google Chrome浏览器中看到的(正确)





这就是我使用Firefox所做的(错误)





以下是代码和示例: http://jsfiddle.net/nxTTd/65/ ...



我该如何解决它? 试试这个,只需将宽度设置为auto,然后根据需要对齐文本,从.option_class中删除方向以对齐文本。

  .select_class {
宽度:汽车;
方向:rtl;
text-align:left;
文本溢出:省略号;
}


I want to make a select that opens from right to left.

This is what I see with Google Chrome (correct)

And this is what I take with Firefox (error)

Here is the code and the example: http://jsfiddle.net/nxTTd/65/...

How can I fix it?

解决方案

Try this and just set your width to auto and then if needed align text accordingly, remove direction from your .option_class to align text.

.select_class {
 width:auto;
 direction: rtl;
 text-align:left;
 text-overflow: ellipsis;
  }

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

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