javascript - 如何通过 Bootstrap 在弹出按钮中制作内容文本 "rtl"

标签 javascript html css

enter image description here我有一个弹出悬停按钮。我想让它成为文本 RTL。我该怎么做?

<button
    type                = "button"
    class               = "btn btn-success btn-xs pop"
    data-container      = "body"
    data-toggle         = "popover"
    data-placement      = "right"
    data-content        = "hello world"
    data-original-title = ""
    title               = "">help</button>

最佳答案

添加:

style="direction:rtl;"


<button type="button" class="btn btn-success btn-xs pop" data-container="body" data-toggle="popover" data-placement="right"  data-content="hello world"
  data-original-title="" title="" style="direction:rtl;" >

关于javascript - 如何通过 Bootstrap 在弹出按钮中制作内容文本 "rtl",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42272128/

相关文章:

jquery - 如何防止 JQueryMobile 中的页脚添加到 anchor 的样式?

javascript - jQuery - 根据 HTML 属性设置 CSS 尺寸

javascript - requestAnimationFrame 在 cancelAnimationFrame 之后运行速度是原来的两倍

javascript - 使用 gulp 设置配置文件。站点加载但 css 注入(inject)没有发生。我该如何解决?

javascript - 按下回车键时未检测到 Material UI 输入

html - 为什么我在集成 Facebook Open Graph 时收到错误 "Required Property Missing"?

html - Firefox 忽略的最大高度

javascript - 我如何在一行函数中执行我的 jquery 悬停函数

javascript - 如何在没有分隔符的情况下分割字符串?

javascript - Ajax 脚本在打字时无法正常工作(keyup)