十八挡篓、百度輸入框練習(xí)

代碼:

<!DOCTYPE html>
<html>
<head>
    <title>百度輸入?yún)^(qū)域</title>
    <meta charset="utf-8">

    <style type="text/css">
        .inputdiv{
            width: 700px;
            height: 40px;
            margin: 100px auto 0px auto;
            position: relative;
            left: 81px;

        }

        .inputdiv input{
            width: 400px;
            height: 36px;
            outline-style: none;
            border: 1px solid #ddd;
        }

        .inputdiv input:focus{
            border: 0px;
            outline-style: none;
            border: 1px solid #317ef3;
        }

        .inputdiv .toke{
            width: 40px;
            height: 40px;
            display: inline-block;
            background-image:url(imgs/recode.png) ;
            background-size: 25px 25px; 
            background-repeat: no-repeat;
            background-position: center center;
            position: relative;
            left: -81px;
            /*background: blue;*/
        }

        .inputdiv .toke:hover{
            width: 40px;
            height: 40px;
            background-image:url(imgs/recode_hover.png);
            background-size: 25px 25px;
            background-repeat: no-repeat;
            background-position: center center;

        }

        .inputdiv > *{
            float: left;
        }

        .inputdiv .scan{
            width: 40px;
            height: 40px;
            display: inline-block;
            background-image:url(imgs/camera.png) ;
            background-size: 25px 25px; 
            background-repeat: no-repeat;
            background-position: center center;
            position: relative;
            left: -81px;
        }


        .inputdiv .scan:hover{
            width: 40px;
            height: 40px;
            background-image:url(imgs/camera_hover.png);
            background-size: 25px 25px;
            background-repeat: no-repeat;
            background-position: center center;

        }

        .inputdiv .line{
            width: 1px;
            height: 20px;
            border-left: 1px solid #eee; 
            margin-top:10px;
            position: relative;
            left: -81px;
        }

        .inputdiv .search{
            width: 100px;
            height: 40px;
            background: #317ef3;
            text-decoration: none;
            text-align: center;
            line-height: 40px;
            color: white;
            position: relative;
            left: -82px;
            font-size: 14px;
        }
        .inputdiv .search:hover{
            background: #418ef3;
        }


    </style>

</head>
<body>

<div class="inputdiv">
    <div>
        <input type="text" name="content">
    </div>
    <span class="toke"></span>
    <span class="line"></span>
    <span class="scan"></span>
    <a class="search" href="#" >百度一下</a>
</div>
</body>
</html>

效果:

效果圖

17級上課視頻:
百度云視頻:https://pan.baidu.com/s/1jHBLSay

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末妻坝,一起剝皮案震驚了整個濱河市屹堰,隨后出現(xiàn)的幾起案子沿腰,更是在濱河造成了極大的恐慌,老刑警劉巖事哭,帶你破解...
    沈念sama閱讀 219,110評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件漫雷,死亡現(xiàn)場離奇詭異,居然都是意外死亡慷蠕,警方通過查閱死者的電腦和手機(jī)珊拼,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,443評論 3 395
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來流炕,“玉大人澎现,你說我怎么就攤上這事∶勘伲” “怎么了剑辫?”我有些...
    開封第一講書人閱讀 165,474評論 0 356
  • 文/不壞的土叔 我叫張陵,是天一觀的道長渠欺。 經(jīng)常有香客問我妹蔽,道長,這世上最難降的妖魔是什么挠将? 我笑而不...
    開封第一講書人閱讀 58,881評論 1 295
  • 正文 為了忘掉前任胳岂,我火速辦了婚禮,結(jié)果婚禮上舔稀,老公的妹妹穿的比我還像新娘乳丰。我一直安慰自己,他們只是感情好内贮,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,902評論 6 392
  • 文/花漫 我一把揭開白布产园。 她就那樣靜靜地躺著,像睡著了一般夜郁。 火紅的嫁衣襯著肌膚如雪什燕。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,698評論 1 305
  • 那天竞端,我揣著相機(jī)與錄音屎即,去河邊找鬼。 笑死事富,一個胖子當(dāng)著我的面吹牛剑勾,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播赵颅,決...
    沈念sama閱讀 40,418評論 3 419
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼暂刘!你這毒婦竟也來了饺谬?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,332評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎募寨,沒想到半個月后族展,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,796評論 1 316
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡拔鹰,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,968評論 3 337
  • 正文 我和宋清朗相戀三年仪缸,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片列肢。...
    茶點(diǎn)故事閱讀 40,110評論 1 351
  • 序言:一個原本活蹦亂跳的男人離奇死亡恰画,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出瓷马,到底是詐尸還是另有隱情拴还,我是刑警寧澤,帶...
    沈念sama閱讀 35,792評論 5 346
  • 正文 年R本政府宣布欧聘,位于F島的核電站片林,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏怀骤。R本人自食惡果不足惜费封,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,455評論 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望蒋伦。 院中可真熱鬧弓摘,春花似錦、人聲如沸凉敲。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,003評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽爷抓。三九已至势决,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間蓝撇,已是汗流浹背果复。 一陣腳步聲響...
    開封第一講書人閱讀 33,130評論 1 272
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留渤昌,地道東北人虽抄。 一個月前我還...
    沈念sama閱讀 48,348評論 3 373
  • 正文 我出身青樓,卻偏偏與公主長得像独柑,于是被迫代替她去往敵國和親迈窟。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,047評論 2 355

推薦閱讀更多精彩內(nèi)容