jQueryUI Tabs method
Translation results:
Tabs
[Counter]Tab setting
jQueryUI Tabs methodsyntax
Function:Click on the tab page to switch the content divided into different logical parts.
jQueryUI Tabs methodexample
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI 标签页(Tabs) - 默认功能</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.9.1.js"></script> <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <link rel="stylesheet" href="http://jqueryui.com/resources/demos/style.css"> <script> $(function() { $( "#tabs" ).tabs(); }); </script> </head> <body> <div id="tabs"> <ul> <li><a href="#tabs-1">Nunc tincidunt</a></li> <li><a href="#tabs-2">Proin dolor</a></li> <li><a href="#tabs-3">Aenean lacinia</a></li> </ul> <div id="tabs-1"> <p>tab1</p> </div> <div id="tabs-2"> <p>tab2</p> </div> <div id="tabs-3"> <p>tab3</p> </div> </div> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance