Bootstrap implementing menu Positioning

Source: Internet
Author: User

<! DOCTYPE html>
<meta charset= "Utf-8" >
<meta http-equiv= "x-ua-compatible" content= "Ie=edge" >
<meta name= "viewport" content= "Width=device-width, initial-scale=1" >
<title>hello world</title>
<link href= "//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel= "stylesheet" >
<body>
<ul class= "nav nav-tabs" role= "Tablist" id= "Mytab" >
<li role= "Presentation" class= "active" ><a href= "#first" aria-controls= "Home" role= "tab" data-toggle= "tab" > The first </a></li>
<li role= "Presentation" ><a href= "#second" aria-controls= "Profile" role= "tab" data-toggle= "tab" > Second item </ A></li>
<li role= "Presentation" ><a href= "#third" aria-controls= "Messages" role= "tab" data-toggle= "tab" > Third item </ A></li>
<li role= "Presentation" ><a href= "#forth" aria-controls= "Settings" role= "tab" data-toggle= "tab" > Fourth </ A></li>
</ul>

<div class= "Tab-content" >
<div role= "TabPanel" class= "Tab-pane Active" id= "first" > haha haha </div>
<div role= "TabPanel" class= "Tab-pane" id= "Second" >
<p> what does the Internet do? </p>
<p> Internet skills Education, free OH </p>
</div>
<div role= "TabPanel" class= "Tab-pane" id= "third" > Hum hem hem hem </div>
<div role= "TabPanel" class= "Tab-pane" id= "forth" > Hey hehe Hey hei hei hei hehe </div>
</div>
<script src= "Http://libs.baidu.com/jquery/1.9.0/jquery.js" ></script>
<script src= "//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" ></script>
<script type= "Text/javascript" >
$ (document). Ready (function () {
$ (' #myTab a[href= "#second"]). tab (' Show ')
});
</script>
</body>

Bootstrap implementing menu Positioning

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.