简体   繁体   English

如何使用 css 调整 introjs-tooltip 宽度

[英]How to adjust introjs-tooltip width using css

How to make a specific introjs tooltip width longer?如何使特定的 introjs 工具提示宽度更长? I'm able to change the text color using css but changing the width is not working.我可以使用 css 更改文本颜色,但更改宽度不起作用。

CSS: CSS:

.customTooltip * {
    color: #4a4a4a;
    font-size: 18px;
}

.customTooltip .introjs-tooltip-title {
    color: #0a41c9;

}
//Not working
.customTooltip .introjs-tooltip {
    min-width: 500px;
}

IntroJs:简介:

const intro = introJs();
intro.setOptions({
  steps: [{
      title: 'Title',
      intro: 'Long Intro',
      tooltipClass: 'customTooltip'
    }
  ]
})

did you want to resize the parent div?你想调整父 div 的大小吗?

you can try你可以试试

.customTooltip {
  min-width: 500px;
}

directly, and your can add !important too.直接,您也可以添加!important

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM