jQuery UI Dialog Button Icons

后端 未结 12 1482
[愿得一人]
[愿得一人] 2020-11-29 02:40

Is it possible to add icons to the buttons on a jQuery UI Dialog? I\'ve tried doing it this way:

$(\"#DeleteDialog\").dialog({
    resizable: false,
    hei         


        
12条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 03:25

    assign height to ".ui-dialog .ui-button" like as following:

    .ui-dialog .ui-button {
        height:36px;
    }
    .ui-icon-kl_exit {
        height:32px; 
        width:32px;
        display:block;
        background-image: url('../icons/exit32.ico');
    }
    

提交回复
热议问题