css - 如何在 Bootstrap-Vue 中增加工具提示的宽度

标签 css vue.js tooltip width bootstrap-vue

有没有办法在 bootstrap vue.js 中增加工具提示的宽度?我有一个重要的声明要显示在工具提示中。并且工具提示将消息显示为连续三个单词。 所以工具提示的高度更大,宽度更小。

<div>
  <span id="disabled-wrapper" class="d-inline-block" tabindex="0">
    <b-button variant="primary" style="pointer-events: none;" disabled>Disabled button</b-button>
  </span>
  <b-tooltip target="disabled-wrapper">jasfkjsdfsdafiads uhsdifumasb jhgasd  asd ua d uiuud  iad iadh ad ihhad ad aid ia dia id ai did ai d a ushdufsd ushd iufads fiuash dfias d uusahdfiusahifu ais fisadu fius fsuhdfushfisafh isaf hisauhfisa hhfish fiushf iush fisu hfisuh fis hfius hfius stooltip</b-tooltip>
</div>

最佳答案

试试这个

.tooltip .tooltip-inner{
  max-width: 500px !important;
  width: 400px !important;
}

关于css - 如何在 Bootstrap-Vue 中增加工具提示的宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58819835/

相关文章:

html - 我怎样才能强制一个 css flex child 成为它所在行的唯一 child ?

html - 显示:none for video element,还会被缓冲吗?

javascript - 在 jQuery 中从头开始构建工具提示功能

c# - 如何在 WinForm 应用程序的 PictureBox 中更改现有 ToolTip 控件的文本?

html - 未应用媒体查询

css - 引导面板标题和主体之间的烦人的白线

javascript - 使用我在 laravel 中从 ajax 过滤的数据将 "append"VUE 组件转换为 DOM 的正确方法是什么?

javascript - 类型错误 : Cannot destructure property 'createComponentInstance' of 'vue.ssrUtils' as it is null

vue.js - Vuetify 选择组件初始值问题

html - 为什么图像在以下情况下没有调整大小?