Bootstrap tooltip doesn't show style of the tooltip, only data

前端 未结 11 1661
礼貌的吻别
礼貌的吻别 2021-02-05 06:13

Trying to make Bootstrap show the tooltip function, I have followed exactly as Bootstrap DOC about Tooltips and declare my attribute and properties. when I hover over the text t

11条回答
  •  不思量自难忘°
    2021-02-05 07:11

    Your problem is more than likely that you failed to initialize the tooltip correctly. Take a look at this bootply

    The documents state:

    enter image description here

    HTML:

    
    

    Jquery:

    $("[data-toggle=tooltip").tooltip();
    
    1. Remember you only need bootstrap.min.css and bootstrap.js for the tooltip to work correctly.
    2. Remember to load scripts and style sheets using absolute URLs (add / in front of path).
    3. bootstrap depends on jquery, load jquery first.

提交回复
热议问题