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

Bootstrap彈出框之自定義懸停框標(biāo)題、內(nèi)容和樣式示例代碼

 更新時間:2017年07月11日 16:03:12   作者:LeapMotion1  
這篇文章主要介紹了Bootstrap彈出框之自定義懸??驑?biāo)題、內(nèi)容和樣式示例代碼,需要的朋友可以參考下

1.Bootstrap彈出框示例

<button type="button" class="btn btn-lg btn-danger" data-toggle="popover" title="Popover title" data-content="And here's some amazing content. It's very engaging. Right?">點(diǎn)我彈出/隱藏彈出框</button>

這里寫圖片描述

2.改進(jìn)

有時提示框內(nèi)容較多,僅僅使用data-content,title,在html文檔里寫出來比較亂,我們可以借助提供的popover()方法,實(shí)現(xiàn)對彈出框內(nèi)容、樣式的修改。

$("#btn-danger").popover({
 html: true,  //實(shí)現(xiàn)對html可寫
 title: keywords_title(), //標(biāo)題函數(shù)
 content: function() {
  return keywords_content(); //內(nèi)容函數(shù)
 }
});
//標(biāo)題函數(shù) 
function keywords_title() {
 return '結(jié)果說明:';
}
//內(nèi)容函數(shù),同時對樣式進(jìn)行修改
function keywords_content() {
 var data = $('<div style="width:700px;color: #787671" ><p><span>提及結(jié)果列關(guān)鍵詞不區(qū)分英文大小寫</span></p></div>');
}
//以下是彈出框樣式,可以根據(jù)需要自定義修改
.popover {
 position: absolute;
 top: 0;
 left: 0;
 z-index: 1060;
 display: none;
 max-width: 276px;
 padding: 1px;
 font-size: 14px;
 font-weight: 400;
 line-height: 1.42857143;
 text-align: left;
 white-space: normal;
 background-color: #fff;
 -webkit-background-clip: padding-box;
 background-clip: padding-box;
 border: 1px solid #ccc;
 border: 1px solid rgba(0,0,0,.2);
 border-radius: 6px;
 -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
 box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

以上所述是小編給大家介紹的Bootstrap彈出框之自定義懸??驑?biāo)題、內(nèi)容和樣式示例代碼,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評論