Home > Web Front-end > JS Tutorial > body text

A brief analysis of the style setting issues of JQuery UI Dialog_jquery

WBOY
Release: 2016-05-16 17:08:28
Original
1743 people have browsed it

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); }

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!