欧美亚洲中文,在线国自产视频,欧洲一区在线观看视频,亚洲综合中文字幕在线观看

      1. <dfn id="rfwes"></dfn>
          <object id="rfwes"></object>
        1. 站長資訊網(wǎng)
          最全最豐富的資訊網(wǎng)站

          html5中如何制作搜索欄

          html5中制作搜索欄的方法:首先新建一個div,id名為box,用來包裹搜索框;然后在內(nèi)部添加一個input標(biāo)簽和一個div標(biāo)簽;最后使用css為它們設(shè)計(jì)樣式即可。

          html5中如何制作搜索欄

          本教程操作環(huán)境:windows7系統(tǒng)、html5版,DELL G3電腦,該方法適用于所有品牌電腦。

          html5中制作搜索欄的方法:

          1、首先新建一個div,id名為box,用來包裹搜索框;

          2、然后在內(nèi)部添加一個input標(biāo)簽和一個div標(biāo)簽,一個用來輸入文字,一個充當(dāng)按鈕;

          3、最后使用css為它們設(shè)計(jì)樣式即可。

          <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Examples</title> <meta name="description" content=""> <meta name="keywords" content=""> <link href="" rel="stylesheet"> <style type="text/css">     #box{         width: 380px;         margin: 30px auto;         font-family: 'Microsoft YaHei';         font-size: 14px;     }     input{         width: 260px;         border: 1px solid #e2e2e2;         height: 30px;         float: left;         background-image: url(images/search.jpg);         background-repeat: no-repeat;         background-size: 25px;         background-position:5px center;         padding:0 0 0 40px;     }     #search{         width: 78px;         height: 32px;         float: right;         background: black;         color: white;         text-align: center;         line-height: 32px;         cursor: pointer;     }   </style> </head> <body>     <div id="box">         <input type="search" name="search" placeholder="請輸入關(guān)鍵字">         <div id="search">搜索</div>     </div> </body> </html>
          登錄后復(fù)制

          相關(guān)學(xué)習(xí)推薦:html教程

          贊(1)
          分享到: 更多 (0)
          網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號