jquery several different styles of tabs

Source: Internet
Author: User

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8″/>
<title> Response Tabs Jqueyr plugin </title>
<link rel= "stylesheet" type= "Text/css" href= "Css/responsive.tabs.css" media= "All"/>
<style type= "Text/css" >
*{margin:0; padding:0; list-style:none;}
Body {font:14px/1.8 "Microsoft Yahei";}
. demo {width:1000px; margin:20px auto 50px;}
. demo H1 {font-size:28px; font-weight:normal; margin-bottom:50px;}
. Tips {color: #999; font-size:12px; margin:50px 0 20px;}

. tab-content {background-color: #f7f7f7; padding:10px;}
. tab-content h4,. accordion-content h4 {margin-bottom:5px;}
. tab-content p,. accordion-content p {margin-bottom:10px;}

@media only screen and (max-width:1000px) {
Body {margin:0 20px;}
. demo {width:100%;}
}
</style>
<script type= "Text/javascript" src= "Js/jquery-1.7.2.min.js" ></script>
<script type= "Text/javascript" src= "Js/responsive.tabs.js" ></script>
<script type= "Text/javascript" >
$ (document). Ready (function () {

$ ('. Tabs '). Resptabs ();

});
</script>

<body>

<div class= "Demo" >

<div class= "Tabs" >
<ul class= "Tabs-list" >
<li class= "Active" ><a href= "javascript:;" > Tab 1</a></li>
<li><a href= "javascript:;" > Tab 2</a></li>
<li><a href= "javascript:;" > Tab 3</a></li>
</ul>
<div class= "Tabs-container" >
<div class= "tab-content" style= "Display:block;" >
The idea of <p> responsive web design (responsive web designs) is to centrally create a page's picture typesetting size, which can be intelligently tailored to the user's behavior and the device environment (System platform, screen size, screen orientation, and so on). </p>
<p> today customers use not only iphones and notebooks, but also the imac's 27-inch display, 10-inch Kindle and many tablet devices. These devices may use different browsers, and each table factor and browser combination can result in different page rendering. And these behaviors may be different in each version. </p>
</div>
<div class= "Tab-content" >
The idea of <p> responsive web design is that the design and development of the page should respond and adjust according to the user's behavior as well as the device environment (System platform, screen size, screen orientation, etc.). Responsive Concrete practices are made up of many aspects, including flexible grids and layouts, pictures, and the use of CSS media query. </p>

<!–s Second tabs–>
<div class= "Tabs" >
<ul class= "Tabs-list" >
<li class= "Active" ><a href= "javascript:;" > Second Level tab #1 </a></li>
<li><a href= "javascript:;" > Second Level tab #2 </a></li>
<li><a href= "javascript:;" > Second Level tab #3 </a></li>
</ul>
<div class= "Tabs-container" >
<div class= "tab-content" style= "Display:block;" >
The idea of <p> responsive web design (responsive web designs) is to centrally create a page's picture typesetting size, which can be intelligently tailored to the user's behavior and the device environment (System platform, screen size, screen orientation, and so on). </p>
<p> today customers use not only iphones and notebooks, but also the imac's 27-inch display, 10-inch Kindle and many tablet devices. These devices may use different browsers, and each table factor and browser combination can result in different page rendering. And these behaviors may be different in each version. </p>
</div>
<div class= "Tab-content" >
The idea of <p> responsive web design is that the design and development of the page should respond and adjust according to the user's behavior as well as the device environment (System platform, screen size, screen orientation, etc.). Responsive Concrete practices are made up of many aspects, including flexible grids and layouts, pictures, and the use of CSS media query. </p>
<p> Responsive web Design is a Web site that can be compatible with multiple terminals-not a specific version for each terminal. </p>
</div>
<div class= "Tab-content" >
<p> recent projects to use the tab effect of more places, so they have a little encapsulation, written in jquery plug-ins, easy to use later, by the way to revisit the implementation of the jquery plug-in mechanism. The Common tab effect is summarized before the plugin is written, and in general there are several effects. Plug-ins strive to be simple and easy to use, as long as the common functions can be achieved. </p>
<p> make a summary of the Common tab effect before writing the plugin, which is largely the result. Plug-ins strive to be simple and easy to use, as long as the common functions can be achieved. </p>
</div>
</div>
</div>
<!–e Second tabs–>

</div>
<div class= "Tab-content" >
<p> recent projects to use the tab effect of more places, so they have a little encapsulation, written in jquery plug-ins, easy to use later, by the way to revisit the implementation of the jquery plug-in mechanism. The Common tab effect is summarized before the plugin is written, and in general there are several effects. Plug-ins strive to be simple and easy to use, as long as the common functions can be achieved. </p>
<p> make a summary of the Common tab effect before writing the plugin, which is largely the result. Plug-ins strive to be simple and easy to use, as long as the common functions can be achieved. </p>
</div>
</div>
</div>
</div>

</body>

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.