jquery-ui 的对话框中是否有任何属性可以提供类似于 div 的 title 属性的行为。(在悬停时显示标题名称)?
下面是确认对话框的确定按钮生成的html。我希望将div的“标题”属性应用于“确定”和“取消”按钮
<button type="button" class="ui-button
ui-widget
ui-state-default
ui-corner-all
ui-button-text-only" role="button" aria-disabled="false">
<span class="ui-button-text">Ok</span> </button>
编辑: 这是我用于对话框的一些属性
dialog({
height:110,
widht:460,
title:"This is dialog Title",
modal: true,
buttons: {
"Ok": function() {
$( this ).dialog( 'destroy');
},
Cancel: function() {
$( this ).dialog( 'destroy');
}
},
最佳答案
属性标题就是您要查找的内容。 http://www.quackit.com/html/tags/html_button_tag.cfm
关于css - 如何为 jquery-ui 对话框按钮添加 <div title ="test"></div> 类似属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14485741/