html - rtl 当最后一个词是英语时

标签 html css right-to-left

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

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

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

但显示: click to see

我该怎么做才能解决这个问题?它只发生在 chrome 浏览器中。

编辑: 通过添加修复它

&#x200F;

之前(

谢谢大家

最佳答案

使用 unicode-bidi: bidi-override;

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

关于html - rtl 当最后一个词是英语时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46820524/

相关文章:

html - 不同的html标签但相同的id

javascript - 使用AJAX或预加载: dynamic changes of items in select element

jquery - 我如何在不扩展导航的情况下切换我的显示隐藏

android - 如何让 ConstraintLayout 为 RTL 正常工作?

html - 元素移出垂直对齐

javascript - 当我在 opencart 中加载时出现错误

html - 转换未被子树和属性断点捕获 Chrome 开发人员工具

html - CSS Sprite 定位在按钮内

css - :after pseudo not taking direction (rtl) in consideration?(火狐)

javascript - 如果用户可以使用语言 rtl 或 ltr,如何自动更改输入字段的 CSS 方向属性