Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何为 jqdialog 确认框添加标题?我有一条消息需要显示在中心,并且标题应该显示在顶部。目前我的消息显示在顶部,没有默认标题。
您可以为包含对话框的 div 的 title 属性添加标题
<div class="demo"> <div id="dialog-modal" title="Whatever you title is...."> <p>Blah blah blah</p> </div> </div> $(document).ready(function() { $("#dialog-modal").dialog({ height: 140, modal: true }); });
这里的例子