Recently I am using a JQUERY UI Dialog plug-in, which feels very powerful, but the style setting is troublesome. I finally got it done after two days of research.
To run the plug-in, the required environment is as follows
jquery.ui.all.css is the CSS of the startup style. Open it with firefox to view. The title of the floating layer is as follows,
One-stop solution for all people Tip
In fact, it is a span, so according to this class ui-dialog-title we go to the CSS directory of the official website to find the jquery.ui.dialog.css file and find the classui-dialog-title CSS style.
.ui-dialog .ui-dialog-title { font: 62.5% "Trebuchet MS" , sans-serif;font-weight:bold;float: left; margin: .1em 16px .1em 0; height:15px }
Modify this css to achieve the header style of the floating layer we want.
Header background setting:
.ui-widget-header { border: 1px solid #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }
You can remove the background image and set it as the background color
.ui-widget-header { border: 1px solid #aaaaaa; background-color:red; color: #222222; font-weight: bold; }
About the icon settings of x and lower right corner:
icon.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }