簡體   English   中英

我無法在引導工具提示中單擊html錨標記中的鏈接

[英]I am not able to click on link in html anchor tag in bootstrap tooltip

我正在使用引導工具提示,我已經在工具提示中配置了一個鏈接,但是當我單擊該鏈接時,它嘗試將其重定向到該特定頁面超過10次后沒有重定向到該頁面。

但是,在鼠標懸停時,它總是向我顯示鏈接,但是在單擊它時,有時會起作用,有時卻不起作用。

代碼:

<span class="btn-sm pull-right"  data-toggle="tooltip">
   <button type="button" class="btn btn-primary" data-toggle="tooltip" data- 
             html="true" title="Print feature is enabled for subscription users.
      <a href='https://www.google.com'>Sign up Today</a>"> 
       Print Result Summary
   </button>
 </span>

運行以下代碼。

 $('[data-toggle="tooltip"]').tooltip({'delay':{'hide': 2000}}); 
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script> <span class="btn-sm pull-right" data-toggle="tooltip"> <button type="button" data-html="true" class="btn btn-primary" data-toggle="tooltip" title="Print feature is enabled for subscription users. <a href='https://www.google.com'>Sign up Today</a>"> Print Result Summary </button> </span> 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM