Sweetaler2 tooltip?

我有個問題,是否可以在警報中添加工具提示?或者其他工具提示

? 最佳回答:

僅僅使用簡單的HTML CSS肯定會奏效。下面是一個僅使用HTML和CSS獲得所需輸出的解決方案,請嘗試下面的代碼,

Swal.fire({
  title: '<strong>HTML <u>example</u></strong>',
  icon: 'info',
  html: 'You can use <b>bold text</b>, ' +
    '<a  +
    'and other HTML tags' +
    '<br><br><button class="tool-tip btn" title-new="this is how it look like">Hover here to check</button>',
  showCloseButton: true,
  showCancelButton: true,
  focusConfirm: false,
  confirmButtonText: '<i class="fa fa-thumbs-up"></i> Great!',
  confirmButtonAriaLabel: 'Thumbs up, great!',
  cancelButtonText: '<i class="fa fa-thumbs-down"></i>',
  cancelButtonAriaLabel: 'Thumbs down'
})
 button {
        padding:10px;
      } 
      .tool-tip[title-new]:hover:after {
          content: attr(title-new);
          position: absolute;
          border: #c0c0c0 1px dotted;
          padding: 10px;
          display: block;
          z-index: 100000000000000000000000000000000000000000;
          background-color: #000000;
          color: #ffffff;
          max-width: 200px;
          text-decoration: none;
          text-align:center;
        margin-top:5px;
        margin-left:50px;
        }
<link  rel="stylesheet"/>
<script src="http://cdn.jsdelivr.net/npm/sweetalert2@11"></script>

主站蜘蛛池模板: 中文字幕亚洲一区二区va在线| 亚洲AV本道一区二区三区四区| 午夜DV内射一区二区| 精品在线一区二区| 日韩欧美一区二区三区免费观看| 无码人妻一区二区三区免费看| 国产丝袜视频一区二区三区| 精品日产一区二区三区手机| 一区二区在线观看视频| 无码精品人妻一区二区三区人妻斩| 亚洲AV综合色一区二区三区| 一区二区三区在线免费看| 久久久久人妻精品一区二区三区| 一区二区三区精密机械| 国产日韩精品一区二区在线观看| 高清一区二区三区视频| 波多野结衣的AV一区二区三区 | 亚洲AV无码一区二区三区DV| 中文字幕一区二区三区视频在线| 国产成人一区二区三区在线观看| 一区二区三区视频在线观看| 亚洲一区二区三区写真| 国产视频一区二区| 亚洲一区二区三区偷拍女厕 | 国产免费播放一区二区| 日韩视频一区二区三区| 国产精品视频一区二区噜噜| 中文字幕精品一区二区日本| 91精品国产一区| 美女视频一区二区| 蜜桃传媒视频麻豆第一区| 无码日本电影一区二区网站| 一区二区三区中文字幕| 亚洲国产综合精品中文第一区| 亚洲AV无码一区二区三区网址| 午夜精品一区二区三区在线视| 国产成人精品无码一区二区| 国产一区二区三区小说| 中文字幕一区二区三区精华液| 亚洲国产欧美国产综合一区| 国产AV午夜精品一区二区三|