提示框--其他的自定義屬性
除此之外,提示框還有其他的自定義屬性,每個自定義屬性都具自身存在的意義,如下表所示:

(單擊可放大)
上面的都是有關于提示框的結(jié)構(gòu),在樣式上也是非常的簡單:具體代碼見右側(cè)的 bootstrap.css。
任務
我來試試:使用本小節(jié)所講解內(nèi)容制作一個“延時500毫秒出現(xiàn)提示框”的提示框
- ?不會了怎么辦
-
參考代碼如下:
<h4>data-delay="500"</h4>
<button type="button"
class="btn btn-default"
data-toggle="tooltip"
data-placement="right"
data-original-title="data-delay='500'"
data-delay="500">
提示框延時500毫秒出現(xiàn)
</button>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<style id="jsbin-css">
body {
padding: 100px;
}
.btn {
margin: 20px 10px 20px;
}
</style>
</head>
<body>
<h4>data-animation="true"</h4>
<button type="button"
class="btn btn-default"
data-toggle="tooltip"
data-placement="left"
data-original-title="data-animation='true'"
data-animation
data-animation="true">data-animation="true"</button>
<h4>data-html="true"</h4>
<button type="button"
class="btn btn-default"
data-toggle="tooltip"
data-placement="top"
data-original-title="<h1>data-html='true'</h1>"
data-html="true">data-html="true"</button>
<h4>data-trigger="click"</h4>
<button type="button"
class="btn btn-default"
data-toggle="tooltip"
data-placement="bottom"
data-original-title="data-trigger='click'"
data-trigger="click">data-trigger="click"</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="tooltip"]').tooltip();
});
</script>
</body>
</html>
請驗證,完成請求
由于請求次數(shù)過多,請先驗證,完成再次請求