<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<!--[if it IE 9]-->
<script type="text/javascript" src="js/respond.js" ></script>
<!--[endif]-->
<style>
.navbar-nav > li > a ,.navbar-header > a{
outline: none;
}
</style>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target="#example-navbar-collapse">
<span class="sr-only">切换导航</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">ProjectName</a>
</div>
<div class="collapse navbar-collapse" id="example-navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">iOS</a></li>
<li><a href="#">SVN</a></li>
<li><a href="#">GitHub</a></li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-sm-9 main-container">
<p class="pull-right visible-xs">
<button class="btn-xs btn btn-primary toggle-menu"> Toggle</button>
</p>
<div class="jumbotron">
<h1>Hello, world!</h1>
<p>...</p>
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
</div>
<div class="row">
<div class="col-6 col-sm-6 col-lg-4">
<h2>headline</h2>
<p>The pagination component should be wrapped in a <nav> element to identify it as a navigation section to screen readers and other assistive technologies. In addition, as a page is likely to have more than one such navigation section already (such as the primary navigation in the header, or a sidebar navigation), it is advisable to provide a descriptive aria-label for the <nav> which reflects its purpose. For example, if the pagination component is used to navigate between a set of search results, an appropriate label could be </p>
<a class="btn btn-default">View detail</a>
</div>
<div class="col-6 col-sm-6 col-lg-4">
<h2>headline</h2>
<p>The pagination component should be wrapped in a <nav> element to identify it as a navigation section to screen readers and other assistive technologies. In addition, as a page is likely to have more than one such navigation section already (such as the primary navigation in the header, or a sidebar navigation), it is advisable to provide a descriptive aria-label for the <nav> which reflects its purpose. For example, if the pagination component is used to navigate between a set of search results, an appropriate label could be </p>
<a class="btn btn-default">View detail</a>
</div>
<div class="col-6 col-sm-6 col-lg-4">
<h2>headline</h2>
<p>The pagination component should be wrapped in a <nav> element to identify it as a navigation section to screen readers and other assistive technologies. In addition, as a page is likely to have more than one such navigation section already (such as the primary navigation in the header, or a sidebar navigation), it is advisable to provide a descriptive aria-label for the <nav> which reflects its purpose. For example, if the pagination component is used to navigate between a set of search results, an appropriate label could be </p>
<a class="btn btn-default">View detail</a>
</div>
<div class="col-6 col-sm-6 col-lg-4">
<h2>headline</h2>
<p>The pagination component should be wrapped in a <nav> element to identify it as a navigation section to screen readers and other assistive technologies. In addition, as a page is likely to have more than one such navigation section already (such as the primary navigation in the header, or a sidebar navigation), it is advisable to provide a descriptive aria-label for the <nav> which reflects its purpose. For example, if the pagination component is used to navigate between a set of search results, an appropriate label could be </p>
<a class="btn btn-default">View detail</a>
</div>
<div class="col-6 col-sm-6 col-lg-4">
<h2>headline</h2>
<p>The pagination component should be wrapped in a <nav> element to identify it as a navigation section to screen readers and other assistive technologies. In addition, as a page is likely to have more than one such navigation section already (such as the primary navigation in the header, or a sidebar navigation), it is advisable to provide a descriptive aria-label for the <nav> which reflects its purpose. For example, if the pagination component is used to navigate between a set of search results, an appropriate label could be </p>
<a class="btn btn-default">View detail</a>
</div>
<div class="col-6 col-sm-6 col-lg-4">
<h2>headline</h2>
<p>The pagination component should be wrapped in a <nav> element to identify it as a navigation section to screen readers and other assistive technologies. In addition, as a page is likely to have more than one such navigation section already (such as the primary navigation in the header, or a sidebar navigation), it is advisable to provide a descriptive aria-label for the <nav> which reflects its purpose. For example, if the pagination component is used to navigate between a set of search results, an appropriate label could be </p>
<a class="btn btn-default">View detail</a>
</div>
</div>
</div>
<div class="hidden-xs col-sm-3 right-menu">
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery.min-1.9.1.js" ></script>
<script type="text/javascript" src="js/bootstrap.min.js" ></script>
<script>
$('.toggle-menu').click(function(){
if($('.main-container').hasClass('col-xs-6')){
$('.main-container').removeClass('col-xs-6');
}else{
$('.main-container').addClass('col-xs-6');
}
if($('.right-menu').hasClass('col-xs-6')){
$('.right-menu').removeClass('col-xs-6');
$('.right-menu').addClass('hidden-xs');
}else{
$('.right-menu').addClass('col-xs-6');
$('.right-menu').removeClass('hidden-xs');
}
});
</script>
</body>
</html>
转载请注明原文地址: https://ju.6miu.com/read-350158.html