<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 細節完善 ### 1.引入normolize.css HTML標簽的默認樣式通常帶著默認的邊距等樣式,在開發中我們經常需要手動重置標簽的邊框等屬性。 我們選擇`normalize.css`標準化樣式庫,來使得項目中的網頁默認樣式更加標準。 相比`reset.css`的激進,`normalize.css`對網頁的初始化更加合理。 ~~~html <link href="https://cdn.bootcss.com/normalize/7.0.0/normalize.css" rel="stylesheet"/> ~~~ ### 1.添加HTML ~~~html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <link href="https://cdn.bootcss.com/normalize/7.0.0/normalize.css" rel="stylesheet"/> <link rel="stylesheet" type="text/css" href="css/base.css"/> </head> <body> <!--總容器開始--> <div class="container"> <h1>我的ToDo</h1> <form class="add-task"> <!--輸入框--> <input name="content" type="text" placeholder="下午記得要買菜。。。"/> <!--添加按鈕--> <button type="submit">submit</button> </form> <div class="task-list"> <div class="task-item"> <span><input type="checkbox"/></span> <span class="task-content">item content</span> <span>delete</span> <span>detail</span> </div> <div class="task-item"> <span><input type="checkbox"/></span> <span class="task-content">item content</span> <span>delete</span> <span>detail</span> </div> <div class="task-item"> <span><input type="checkbox"/></span> <span class="task-content">item content</span> <span>delete</span> <span>detail</span> </div> <div class="task-item"> <span><input type="checkbox"/></span> <span class="task-content">item content</span> <span>delete</span> <span>detail</span> </div> </div> <!--任務詳情開始--> <div class="task-detail-mask"></div> <div class="task-detail"> <div class="content"></div> <div> <div class="desc"> <textarea name="" rows="" cols=""></textarea> </div> </div> <div class="remind"> <input type="date"/> <!--<button type="submit">submit</button>--> </div> </div> <!--容器結束--> </div> <script type="text/javascript" src="js/jquery.js" ></script> <script type="text/javascript" src="js/store.legacy.min.js" ></script> <script type="text/javascript" src="js/base.js" ></script> </body> </html> ~~~ ### 2.添加樣式 [前置內容:box-sizing](http://www.jianshu.com/p/e2eb0d8c9de6) ~~~javascript * { /*background: rgba(0,0,0,0.1);*/ -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; } body{ background: #00334b; color: #fff; } .container{ max-width: 700px; margin: 0 auto; position:relative; } h1{ text-align: center; } input,.task-item,button,textarea{ border-radius: 3px; padding: 10px; } button{ display: inline-block; cursor:pointer; border: none; } input[type=text],input[type=date]{ border: none; display: block; width: 100%; background:#ddd ; } input[type=text]:hover, input[type=date]:hover, input[type=text]:focus, input[type=date]:focus{ background: #fff; } .add-task input[type=text]{ float: left; width: 84%; margin-right: 1%; } /*添加按鈕*/ .add-task [type = submit]{ background: #46b1e4; width: 15%; } .task-list{ margin: 10px 0; } .task-item{ padding: 10px; background: #fff; color: #333; margin-bottom: 2px; border-radius: 3px; -webkit-box-shadow: 0 2px 3px rgba(0,0,0,0.4); -moz-box-shadow:0 2px 3px rgba(0,0,0,0.4); box-shadow: 0 2px 3px rgba(0,0,0,0.4); /*鼠標滑過顯示小手*/ cursor: pointer; transition: background 0.3s; } .task-item:hover{ background: #ddd; } /*任務詳情開始*/ .task-detail,.task-detail-mask{ position: absolute; } .task-detail{ background: #fff; color: #333; width: 50%; height: 100%; padding: 10px; bottom: 0; right: 0; /*一開始不顯示*/ /*display: none;*/ } .task-detail-mask{ top:0; bottom: 0; right: 0; left: 0; background: rgba(30,30,30,0.7); /*一開始不顯示*/ /*display: none;*/ } textarea, button, input[type=text], input[type=date]{ border: 0; } textarea{ width: 100%; min-height: 100px; display: block; box-shadow: inset 2px 3px rgba(0,0,0,0.4); margin-bottom: 5px; background:#ddd ; } textarea:focus,textarea:hover{ background: #FFFFFF; /*-webkit-box-shadow: 0 2px 3px rgba(0,0,0,0.4); -moz-box-shadow:0 2px 3px rgba(0,0,0,0.4);*/ } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看