jQuery UI Dialog individual CSS styling

前端 未结 8 2707
孤城傲影
孤城傲影 2020-12-05 09:28

I\'m looking to style a modal dialog (using UI Dialog) with unique CSS that is separate from the traditional dialog, so in essence to have two jQuery dialogs that each look

8条回答
  •  我在风中等你
    2020-12-05 10:32

    The current version of dialog has the option "dialogClass" which you can use with your id's. For example,

    $('foo').dialog({dialogClass:'dialog_style1'});
    

    Then the CSS would be

    .dialog_style1 {color:#aaa;}
    

提交回复
热议问题