Analysis on the style setting of jquery UI Dialog _jquery

Source: Internet
Author: User

Recently in the use of a jquery UI dialog plug-ins, feel particularly powerful, but the style settings are more troublesome, studied two days finally finished.

To run the plug-in, you need the following environment

<script src= ". /.. /js/jquery-1.4.2.js "type=" Text/javascript "></script>

<script src= ". /js/jquery.ui.js "type=" Text/javascript "></script>

<link href= "Css/themes/redmond/jquery.ui.all.css" rel= "stylesheet" type= "Text/css"/>


Jquery.ui.all.css for the start style of CSS, with Firefox open view, floating layer title below,

<span id= "Ui-dialog-title-divshow" class= "Ui-dialog-title" unselectable= "on" style= "-moz-user-select:none;" > People a stop tips </span>

is actually a span, then according to this class Ui-dialog-title we go to the official website of the CSS directory to find jquery.ui.dialog.css file find classui-dialog-title this 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 the CSS to achieve the head style of the floating layer we want.

Background setting for header:

. 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 picture and set it to the background color

. ui-widget-header {border:1px solid #aaaaaa; background-color:red; color: #222222; font-weight:bold;}

About the icon settings for the X and lower right corners:

icon. ui-icon {width:16px; height:16px; Background-image:url (images/ui-icons_222222_256x240.png);}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.