彈出框屬性data-template怎么定義
我給他添加了data-template屬性,為什么顯示不正常了,這個到底要怎么用
?<button type="button"
? ? ? ? ? class="btn btn-default"
? ? ?
? ? ? ? ? data-toggle="popover"
? ? ? ? ? title="提示框居左"?
? ? ? ? ? data-content="我是彈出框的內容"
? ? ? ? ? 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
應該是data-container以及data-template后面的:錯了,應該是=