Bootstrap ツールチップは、デフォルトでテキストを中央に揃えます。左揃えでお願いします。CSSファイルを変更する代わりに、HTML内でこれを行う良い方法はありますか?
ここに私のサンプルコードがあります:
<p rel="tooltip" title="Text in tooltip I want to align">Hover over here</p>
<script type="text/javascript">
$(document).ready(function () {
$("p").tooltip();
});
</script>
私はすでに試しましたが、うまくいきませんでした:
<p rel="tooltip" data-html="true" title="<p align='left'>Text in tooltip</p>">Hover over here</p>