css - 如何为 jquery-ui 对话框按钮添加 <div title ="test"></div> 类似属性

标签 css jquery-ui html jquery-ui-dialog

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');
        }
        },

enter image description here

最佳答案

属性标题就是您要查找的内容。 http://www.quackit.com/html/tags/html_button_tag.cfm

关于css - 如何为 jquery-ui 对话框按钮添加 <div title ="test"></div> 类似属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14485741/

相关文章:

html - 悬停时应用于文本的奇怪笔画

html - 带有 Google map 标记的效果和动画

html - 为什么 input[type=checkbox] 不允许 CSS?

javascript - 在调试初学者 javascript 代码时需要帮助

javascript - 根据显示的页面部分更新 JQuery UI slider

javascript - Jquery ui 旋转图像调整大小问题

jquery-ui 自动完成在输入时不选择

Javascript旋转图片宽度需要符合window

php - Wordpress 响应式主题, Logo 在浏览器中显示不同