彈出框?qū)傩詃ata-template怎么定義
我給他添加了data-template屬性,為什么顯示不正常了,這個(gè)到底要怎么用
?<button type="button"
? ? ? ? ? class="btn btn-default"
? ? ?
? ? ? ? ? data-toggle="popover"
? ? ? ? ? title="提示框居左"?
? ? ? ? ? data-content="我是彈出框的內(nèi)容"
? ? ? ? ? data-container:"body"
? ? ? ? ? data-template:'<div class="popover">
? ? ? ? ? ? ? <div class="arrow"></div>
? ? ? ? ? ? ? <h3 class="popover-title bg"></h3>
? ? ? ? ? ? ? <div class="popover-content bg"></div>
? ? ? ? ? </div>'
? ? ? ? ?>
? ? ? ? ?
? ? ? ? ? 猛擊我吧
? </button>
2016-06-27
在button里添加使用‘=’賦值,在js中的話才是用‘:’
2016-01-24
應(yīng)該是data-container以及data-template后面的:錯(cuò)了,應(yīng)該是=