Home > Web Front-end > JS Tutorial > A simple guide to developing web interfaces using the jQuery UI library_jquery

A simple guide to developing web interfaces using the jQuery UI library_jquery

WBOY
Release: 2016-05-16 15:04:17
Original
1294 people have browsed it

1. jQuery UI
jQuery UI is an open source JavaScript web user interface code library based on jQuery. Package
Visual controls with low-level user interaction, animations, special effects, and themeable controls. We can use it directly to build a very
Very interactive web application.
The official website of jQuery UI is: http://jqueryui.com/
jquery-ui-x.xx.x.custom.zip
. The directory structure inside is as follows:
1.css, including CSS files related to jQuery UI;
2.js, including JavaScript files related to jQuery UI;
3. Development-bundle, including multiple different subdirectories: demos (jQuery UI sample files), docs (jQuery
UI document file), themes (CSS theme file) and ui (jQuery ui JavaScript file).
4.Index.html, you can view the index page of jQuery UI function.

2. CSS themes
CSS theme is the skin of jQuery UI, and templates of various colors are available for use. For programmers, you can use
The most suitable template for the website; for artists, templates without any style are also provided based on the design.
You can view existing template styles here: http://jqueryui.com/themeroller/.

3. Simple introduction
Since the introduction of different components of jQuery UI has similar features and syntax, only two components are introduced here
The introduction method can be used to introduce other components in the same way.
button button

//将button 按钮设置成UI 
$('#button').button(); 
Copy after login

dialog dialog box

//将div 设置成dialog 对话框 
$('#dialog ').click(function () { 
 
  $("#dialog ").dialog(); 
 
}); 
Copy after login

In this form, we can know that jQuery UI is introduced in the form of component name() method.

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