如何在bootstrap弹出窗口中添加换行符

时间:2015-04-14 07:48:50

标签: twitter-bootstrap

我正在尝试将文字拆分为新行,但<br/>/n无效。

这是我的代码:

 <a id="contact-seller" class="btn redB seller-btn" 
  data-confirm="By contacting this seller, you are automatically share your 
  profile information as well.<br/>Would you like to proceed?">
     Contact
 </a>

如何使用例如CSS打破data-confirm行?

1 个答案:

答案 0 :(得分:0)

data-html="true"添加到您的标记中,如下所示:

 <a id="contact-seller" class="btn redB seller-btn" data-html="true"
                  data-confirm="By contacting this seller, you are automatically share your profile information as well.<br/>
                  Would you like to proceed?">
                   Contact
               </a>