<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [toc] ## 搜索欄 ### 1. 簡書類 >實現效果 ![](https://box.kancloud.cn/471614f7ad881782023185a23a0eaf0c_483x139.png) >html代碼 ``` <div class="container"> <form action="" class="parent"> <input type="text" class="search" placeholder="搜索"> <input type="button" name="" id="" class="btn"> </form> </div> ``` >css代碼 ``` * { margin: 0; padding: 0; } .container { height: 70px; width: 800px; margin: 100px auto 0 auto; } .parent { position: relative; } .search { width: 300px; height: 40px; border-radius: 18px; outline: none; border: 1px solid #ccc; padding-left: 20px; position: absolute; } .btn { height: 35px; width: 35px; position: absolute; background: url("images/topbar.png") no-repeat -2px -99px; top: 6px; left: 285px; border: none; outline: none; cursor: pointer; } ``` ### 2. 百度類 >實現效果 ![](https://box.kancloud.cn/e4f81b23802ff9730b4b44fd5ceaae0e_612x135.png) >html代碼 ``` <div class="container"> <form action="" class="parent"> <input type="text"> <input type="button" value="百度一下"> </form> </div> ``` >css代碼 **重點: 1.當input框foucus時,border顏色改變,而不是保留outline 2.button按鈕默認box-sizing: border-box** ``` .container { width: 500px; height: 40px; margin: 100px auto 0 auto; } .parent { position: relative; } .parent>input:first-of-type { width: 300px; height: 40px; //輸入框高度設置為40px, border占據2px,總高度為42px border: 1px solid #ccc; outline: none; position: absolute; } .parent>input:first-of-type:focus { border: 1px solid #317ef3; padding-left: 10px; } .parent>input:last-of-type { width: 100px; height: 42px; //button按鈕border并不占據外圍大小,設置高度42px position: absolute; left: 300px; background: #317ef3; border: 1px solid #317ef3; color: #fff; font-size: 16px; outline: none; } ```
                  <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>

                              哎呀哎呀视频在线观看