欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Bootstrap基本插件學(xué)習(xí)筆記之Popover提示框(19)

 更新時間:2016年12月08日 09:06:50   作者:kikay  
這篇文章主要為大家詳細(xì)介紹了Bootstrap基本插件學(xué)習(xí)筆記之Popover提示框的相關(guān)資料,具有一定的參考價值,感興趣的小伙伴們可以參考一下

Tooltip采用的是hover方式彈出提示框(參見前一篇:Bootstrap學(xué)習(xí)總結(jié)筆記(18)– 基本插件之Tooltip提示工具),適合提示內(nèi)容比較少的情況,要是內(nèi)容較多,就可以應(yīng)用Popover提示框。

<!DOCTYPE html>
<html lang="zh-cn">
<head>
 <meta charset="UTF-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <link href="../../css/bootstrap.min.css" rel="stylesheet">
 <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
 <script src="../../js/bootstrap.min.js"></script>
 <title>Popover提示彈出框</title>
</head>
<body>
<div class="container">
 <div class="page-header">
 <h1>Popover提示彈出框</h1>
 </div>
 <div>
 <button type="button" class="btn btn-default" data-toggle="popover"
 data-placement="left" title="popover left" data-content="測試">左邊的按鈕</button>
 <button type="button" class="btn btn-primary" data-toggle="popover"
 data-placement="right" title="popover right" data-content="測試">左邊的按鈕</button>
 <button type="button" class="btn btn-danger" data-toggle="popover"
 data-placement="top" title="popover top" data-content="測試">左邊的按鈕</button>
 <button type="button" class="btn btn-warning" data-toggle="popover"
 data-placement="bottom" title="popover bottom" data-content="測試">左邊的按鈕</button>
 </div>

</div>
<script>
 $(function () {
 $("[data-toggle='popover']").popover();
 })
</script>
</body>
</html>

效果如下:

如果大家還想深入學(xué)習(xí),可以點(diǎn)擊這里進(jìn)行學(xué)習(xí),再為大家附3個精彩的專題:

Bootstrap學(xué)習(xí)教程

Bootstrap實(shí)戰(zhàn)教程

Bootstrap插件使用教程

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論