基于Bootstrap的标准的固定在顶部的导航栏

这是一个基于Bootstrap的标准的固定在顶部的导航栏。后期文章会将响应式导航栏加进去。
 
  
html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="css/index.css" />
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <script src="js/jquery.min.js">script>
    <script src="js/bootstrap.min.js">script>

    <title>Bootstrap 实例title>
head>

<body class="container">


    <nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="padding-left:100px">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">W3Cschoola>
        div>
        <div>
            <ul class="nav navbar-nav">
                <li class="active"><a href="#">iOSa>li>
                <li><a href="#">SVNa>li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        Java <b class="caret">b>
                    a>
                    <ul class="dropdown-menu">
                        <li><a href="#">jmetera>li>
                        <li><a href="#">EJBa>li>
                        <li><a href="#">Jasper Reporta>li>
                        <li class="divider">li>
                        <li><a href="#">分离的链接a>li>
                        <li class="divider">li>
                        <li><a href="#">另一个分离的链接a>li>
                    ul>
                li>
            ul>
        div>
        <div style="padding-right:100px">
            <form class="navbar-form navbar-right" role="search">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Search">
                div>
                <button type="submit" class="btn btn-default">提交button>
            form>
        div>
    nav>


body>
html>

你可能感兴趣的:(bootstrap)