开发者

CSS Custom JQuery ui-dialog

开发者 https://www.devze.com 2023-02-26 04:55 出处:网络
I need to add a 2 pixel border around the JQue开发者_开发百科ry ui-dialog. Could anyone help on what to modify please?

I need to add a 2 pixel border around the JQue开发者_开发百科ry ui-dialog.

Could anyone help on what to modify please?

Thanks


Change the CSS rule for .ui-widget-content:

.ui-widget-content {
    border: 2px solid #DDD;
}

The least intrusive way to do this is to add that rule to your site's stylesheet (e.g. don't change the jQuery UI CSS file), and make sure that the jQuery UI CSS file is loaded first.


To put a border around the dialog box, but not any other widget type, do this:

.ui-widget-content.ui-dialog
{
   border: 2px solid #DDD;
}


In 'jquery-ui.css' add a border to the dialog style:

.ui-dialog {
    position: relative; 
    padding: .2em; 
    width: 300px; 
    border: 2px solid white;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号