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

前端 未结 11 1672
礼貌的吻别
礼貌的吻别 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:00

    Here's a working template for you. My guesses as to what was wrong:

    1. jQuery always needs to come before bootstrap.js.
    2. If you don't have a local server running, you need to add the http: to the CDN addresses.
    3. You may have been trying to initialize the tooltip in the head tags. Problem is that the document probably wasn't ready.

    The following works fine.

    HTML:

    
    
      
        
        
        
        Bootstrap 101 Template
    
        
        
        
    
        
        
        
      
      
        Hover over me
    
        
        
        
        
        
      
    
    

提交回复
热议问题