码迷,mamicode.com
首页 > 其他好文 > 详细

bootstrap配置

时间:2014-09-11 01:14:01      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:bootstrap   java web   

js和css文件引用:

<span style="font-size:14px;"><link href="css/bootstrap-responsive.css" rel="stylesheet"/>
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="=css/font-awesome.min.css" rel="stylesheet">
    
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
     <script src="js/jquery-1.9.1.min.js"></script>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]--></span>

导航条实例:

<span style="font-size:14px;"><nav class="navbar navbar-default navbar-fixed-top" role="navigation">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#example-navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
        <a class="navbar-brand" href="#" name="top" style="font-size: 26px;"><strong>aa</strong></a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
  <div class="navbar-collapse collapse" id="example-navbar-collapse">
          <ul class="nav navbar-nav">
          
            <li class=""><a href="#"><i class="icon-thumbs-up"></i> aa</li></a></li>
            
            <li><a href="#about"><span class=" icon-user-md"></span> aa</a></li>
            
            
            <li><a href="#contact"><span class=" icon-lightbulb"></span> aa</a></li>
            
            
            <li class="dropdown ">
	    <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-wrench"></i> aa<b class="caret"></b> </a>
              <ul class="dropdown-menu">
			 
			<li><a href="/ychui"><i class="icon-fire"></i> aa</a></li>
			<li><a href="/tools/team/new_discuss"><i class="icon-group"></i> aa</a></li>
			<li><a href="/yuanquan"><i class="icon-circle-blank"></i> aa</a></li>
			<li class="divider"> </li>
			<li > <a href="/tools/overseas/"> <i class="icon-copy"></i> aa </a> </li>
			<li > <a href="/canvas/"> <i class="icon-edit"></i> aa </a> </li>
			<li class="divider"> </li>
			<li><a href="/zone"><i class="icon-globe"></i> aa</a></li>
			<li><a href="/huodong"><i class="icon-globe"></i> aa</a></li>
			<li class="divider"> </li>
			<li><a href="/app/download"><i class="icon-mobile-phone"></i> aa</a></li>
			
		</ul>
            </li>
          </ul></span>


bootstrap配置

标签:bootstrap   java web   

原文地址:http://blog.csdn.net/u011067360/article/details/39191089

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!