jQueryUI modal dialog does not show close button (x)

后端 未结 15 2898
鱼传尺愫
鱼传尺愫 2020-12-12 23:45

I\'m using a jQuery modal dialog in my ASP .NET MVC 3 application. It works fine except for that there is no close button showing in the top right corner. How can I add thi

15条回答
  •  天涯浪人
    2020-12-13 00:01

    Using the principle of the idea user2620505 got result with implementation of addClass:

    ...
    open: function(){
        $('.ui-dialog-titlebar-close').addClass('ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only');
        $('.ui-dialog-titlebar-close').append('close');
    }, 
    ...
    

    If English is bad forgive me, I am using Google Translate.

提交回复
热议问题