【发布时间】:2015-12-09 15:58:13
【问题描述】:
使用引导程序设置我的 jQuery UI 时遇到了一些问题。出于某种原因,当我做一个对话框时,jQuery 没有将类“ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only”添加到我的按钮中。我想知道是否有人遇到过类似的问题。否则,模态框工作正常。
他们的例子正在生成什么:
<div class="ui-dialog-buttonset">
<button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button">
<span class="ui-button-text">Delete all items</span>
</button>
<button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button">
<span class="ui-button-text">Cancel</span>
</button>
</div>
我正在执行与该示例完全相同的代码,但出于某种原因,它只生成以下 HTML:
<div class="ui-dialog-buttonset">
<button> type="button">Ok</button>
<button type="button">Cancel</button>
</div>
【问题讨论】:
标签: jquery twitter-bootstrap jquery-ui