【问题标题】:rtl when last word is english最后一个单词是英语时的 rtl
【发布时间】:2017-10-18 23:06:24
【问题描述】:

当标签中的最后一个单词是英文然后是 ( 字符时,我遇到 rtl 问题。例如:

label {
  direction: rtl;
  display: inline-block;
}
<label>php (0 הצבעות)</label>

我弄错了演出方向。 需要: click to see

但显示: click to see

我能做些什么来解决这个问题?它只发生在 chrome 浏览器中。

编辑: 通过添加修复它

‏

之前(

谢谢大家。

【问题讨论】:

  • 在什么浏览器中?
  • 对,仅在 chrome 中...@c-smile
  • 以后,您应该将修复添加为答案,而不是添加到您之前的帖子中。

标签: html css right-to-left


【解决方案1】:

使用unicode-bidi: bidi-override;

label {
   direction: rtl;
   unicode-bidi: bidi-override;
   display: inline-block;
}
<label>php (0 הצבעות)</label>

【讨论】:

  • 但现在是颠倒英文字母:(
  • 你可以这样使用:<style> label { direction:rtl; unicode-bidi: bidi-override; } </style> <label> <span dir="ltr">phps</span> <span dir="ltr">(0 הצבעות)</span> </label>
猜你喜欢
  • 2015-12-06
  • 1970-01-01
  • 2016-11-19
  • 2019-02-23
  • 1970-01-01
  • 1970-01-01
  • 2010-10-01
  • 1970-01-01
  • 2014-02-10
相关资源
最近更新 更多