<!doctype html> <html lang="zh-Hant-TW"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Title</title> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/font-awesome.min.css"> <link rel="stylesheet" href="css/my.css"> </head> <body> <div class="img-container"> <div class="container"> <nav class="nav"> <a href="index.php" class="nav-link text-white">首頁</a> <a href="index.php" class="nav-link text-white">編輯精選</a> <a href="index.php" class="nav-link text-white">街巷故事</a> <a href="index.php" class="nav-link text-white">市井觀點</a> <a href="index.php" class="nav-link text-white">私房知識塾</a> <a href="admin.php" class="nav-link text-white">管理</a> </nav> <form action="admin.php" method="post"> <div class="form-group"> <label for="title" class="col-form-label sr-only">文章標題</label> <input type="text" class="form-control" name="title" id="title" placeholder="請輸入文章標題"> </div> <div class="form-group"> <label for="content" class="col-form-label sr-only">文章內容</label> <textarea name="content" id="content" rows="20" class="form-control" placeholder="請輸入文章內容"></textarea> </div> <div class="text-center"> <input type="hidden" name="op" value="insert"> <button type="submit" class="btn btn-primary">儲存</button> </div> </form> </div> </div> <script src="js/jquery-3.2.1.min.js"></script> <script src="js/popper.min.js"></script> <script src="js/bootstrap.min.js"></script> <script> $(document).ready(function () { $('.img-container').css('width', $(window).width()); $('.img-container').css('height', $(window).height()); }); $(window).resize(function () { $('.img-container').css('width', $(window).width()); $('.img-container').css('height', $(window).height()); }); </script> <script src="http://more.handlino.com/javascripts/moretext-1.2.js" type="text/javascript"></script> </body> </html>