【问题标题】:Jquery UI modal confirmation buttons not rendering HTML correctly, missing classesJquery UI 模式确认按钮未正确呈现 HTML,缺少类
【发布时间】:2015-12-09 15:58:13
【问题描述】:

使用引导程序设置我的 jQuery UI 时遇到了一些问题。出于某种原因,当我做一个对话框时,jQuery 没有将类“ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only”添加到我的按钮中。我想知道是否有人遇到过类似的问题。否则,模态框工作正常。

JqueryUI example

他们的例子正在生成什么:

<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


    【解决方案1】:

    添加一些您尝试为 jquery modal 实现的 jquery 代码。

    【讨论】:

      猜你喜欢
      • 2019-10-09
      • 2011-09-01
      • 1970-01-01
      • 2020-05-29
      • 2017-08-20
      • 2014-04-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多