1. Each UI plug-in now has a unique CSS file, but it must be used in conjunction with ui.theme.css ui.core.css. Otherwise, some effects will not be displayed.
For example, datepicker must reference the preceding two CSS files at the same time. Accordion must be referenced only by ui.theme.css. In this case, I will place the independent demo of each plug-in my resources.
2. UI. Accordion
Html Code Follow certain format requirements:
Copy code The Code is as follows: <ul id = "example">
<Li>
<H3> <a href = "#" href = "#"> Test 1 </a> <Div> <Table Height = "100px"> <tr> <TD> News </TD> </tr> </table>
</Div>
</LI>
<Li>
<H3> <a href = "#" href = "#"> Test 2 </a> <Div> <Table Height = "100px"> <tr> <TD> magazine </TD> </tr> </table>
</Div>
</LI>
<Li>
<H3> <a href = "#" href = "#"> Test 3 </a> <Div> <Table Height = "100px"> <tr> <TD> sport </TD> </tr> </table>
</Div>
</LI>
</Ul>
The 3. UI. Dialog
Note:
(1) added a new reference in UI-1.7.1: jquery. bgiframe. js support
Purpose: If the floating block on the webpage overlaps the drop-down menu, you can see in IE6 that the drop-down box always overwrites the floating block. No matter how you adjust the Z-index, it is useless, bgiframe can easily solve this problem.
See http://www.oschina.net/p/bgiframe for details
Usage:
$. UI. Dialog. defaults. bgiframe = true;
(2) If you want to realize dialog's drag effect, compile the ui.resizable.css and UI. resizable. js files.
4. UI. Tabs
Pay special attention to this relative ui-1.6:
(1) HTML code specifications: Copy code The Code is as follows: <Div id = "example">
<Ul>
<Li> <a href = "# tab-1" href = "# tab-1"> <span> one </span> </a> </LI>
<Li> <a href = "# tab-2" href = "# tab-2"> <span> two </span> </a> </LI>
<Li> <a href = "# tab-3" href = "# tab-3"> <span> three </span> </a> </LI>
</Ul>
<Div id = "tab-1">
This is jquery tab one.
</Div>
<Div id = "tab-2">
I'm tab two.
</Div>
<Div id = "tab-3">
Haha, three is here.
</Div>
<Div id = "new-tab">
This is add tab.
</Div>
</Div>
Note: The corresponding Div of each tab must be placed in the effective Div of the tab.
(2) no longer use $ ("# example> ul"). tabs ();
Write $ ("# example"). tabs ();