彈出框--自定義結(jié)構(gòu)屬性
同樣在彈出框制作時(shí),可以在HTML中定義下表所列的自定義屬性:

舉例:
<button type="button"
class="btn btn-default"
data-toggle="popover"
data-placement="bottom"
title="提示框居左"
data-content="我是彈出框的內(nèi)容"
data-trigger="hover"
data-dalay="600">
猛擊我吧
</button>
任務(wù)
我來試試:親們,來右側(cè)代碼編輯器親自試試本小節(jié)表中的參數(shù)吧!
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>自定義結(jié)構(gòu)屬性</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<style>
body{
padding: 10px;
}
</style>
</head>
<body>
<button type="button"
class="btn btn-default"
data-toggle="popover"
title="提示框居左"
data-content="我是彈出框的內(nèi)容">
猛擊我吧
</button>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script>
$(function(){
$('[data-toggle="popover"]').popover();
});
</script>
</body>
</html>
請驗(yàn)證,完成請求
由于請求次數(shù)過多,請先驗(yàn)證,完成再次請求