第十週

FB社團:https://www.facebook.com/groups/839846602780073/

郭俊良老師FB:https://www.facebook.com/webugm

index.html

<!DOCTYPE html> 
<html  lang= "zh-TW" > 
<head> 
  <meta  charset= "utf-8" > 
  <meta  http-equiv= "X-UA-Compatible"  content= "IE=edge" > 
  <meta  name= "viewport"  content= "width=device-width, initial-scale=1"> 
  <!--上述3個meta標籤*必須*放在最前面,任何其他內容都*必須*跟隨其後!--> 
  <title> 新興國中 </title>

  <!-- Bootstrap --> 
  <link  href= "css/bootstrap.min.css"  rel= "stylesheet" >

  <!-- HTML5 shim and Respond.js for 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="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]--> 
</head> 
<body> 
    <!-- Navigation -->
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header page-scroll">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <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="#page-top">新興國中</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li class="hidden">
                        <a href="#page-top"></a>
                    </li>
                    <li class="page-scroll">
                        <a href="#portfolio">連結1</a>
                    </li>
                    <li class="page-scroll">
                        <a href="#about">連結2</a>
                    </li>
                    <li class="page-scroll">
                        <a href="#contact">連結3</a>
                    </li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->
    </nav>

    <div  class= "container" style="margin-top:80px;">
        <div class="row bg-primary">
          <div class="col-md-12">
            QQQQQ
          </div>
        </div>
        <div class="row bg-success">
          <div class="col-md-12">
            DDD
          </div>
        </div>
    </div>    


  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> 
  <script src= "//cdn.bootcss.com/jquery/1.11.3/jquery.min.js" ></script> 
  <!-- Include all compiled plugins (below), or include individual files as needed --> 
  <script src= "js/bootstrap.min.js" ></script> 
</body> 
</html>

index1.html

<!DOCTYPE html>
<html  lang= "zh-TW" >
<head>
  <meta  charset= "utf-8" >
  <meta  http-equiv= "X-UA-Compatible"  content= "IE=edge" >
  <meta  name= "viewport"  content= "width=device-width, initial-scale=1">
  <!--上述3個meta標籤*必須*放在最前面,任何其他內容都*必須*跟隨其後!-->
  <title> 新興國中 </title>

  <!-- Bootstrap -->
  <link  href= "css/bootstrap.min.css"  rel= "stylesheet" >

  <!-- HTML5 shim and Respond.js for 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="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body>
    <!-- Navigation -->
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header page-scroll">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <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="#page-top">新興國中</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li class="hidden">
                        <a href="#page-top"></a>
                    </li>
                    <li class="page-scroll">
                        <a href="#portfolio">商品介紹</a>
                    </li>
                    <li class="page-scroll">
                        <a href="#about">關於我們</a>
                    </li>
                    <li class="page-scroll">
                        <a href="#contact">聯絡我們</a>
                    </li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->
    </nav>

      <div  class= "container" style="margin-top:80px;" id="portfolio">
      <div class="row bg-primary" style="height:300px;">
            <div class="col-md-12">
                 QQQQQ
            </div>
          </div>
      <div class="row bg-success"  style="height:200px;">
            <div class="col-md-12">
                 DDD
            </div>
          </div>
      </div>

    <div  class= "container" style="margin-top:40px;"  id="about">
      <div class="row bg-warning" style="height:300px;">
        <div class="col-md-12">
           QQQQQ
        </div>
      </div>
      <div class="row bg-danger"  style="height:200px;">
        <div class="col-md-12">
           DDD
        </div>
      </div>
    </div>


  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  <script src= "//cdn.bootcss.com/jquery/1.11.3/jquery.min.js" ></script>
  <!-- Include all compiled plugins (below), or include individual files as needed -->
  <script src= "js/bootstrap.min.js" ></script>
</body>
</html>