gpt4 book ai didi

jquery - popover bootstrap 中的文本方向从右到左 (rtl)

转载 作者:行者123 更新时间:2023-11-27 23:45:25 25 4
gpt4 key购买 nike

我尝试编写一个在悬停时出现的简单弹出窗口,到目前为止非常简单。问题是我不想用英文写标题,事实上我想用希伯来语写标题。众所周知,语言的方向是 rtl 而不是 ltr。我的问题是我无法更改文本属性的方向,已经尝试使用 class= pull-right。

代码如下:

$(document).ready(function(){
$('#start').popover({
html : true,
content: "as you can see the hebrew text doesnt fit the title",
title: "<div class='pull-right'>שלום</div>",
placement : "bottom",
trigger: "hover"


});


});

这是链接to test the code

最佳答案

删除 שלום 周围的 div 标签,并在您的 css 中写入:

.popover-title {text-align: right;}

这是您的 example

关于jquery - popover bootstrap 中的文本方向从右到左 (rtl),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30107687/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com