精品丰满熟女一区二区三区_五月天亚洲欧美综合网_亚洲青青青在线观看_国产一区二区精选

  • <menu id="29e66"></menu>

    <bdo id="29e66"><mark id="29e66"><legend id="29e66"></legend></mark></bdo>

  • <pre id="29e66"><tt id="29e66"><rt id="29e66"></rt></tt></pre>

      <label id="29e66"></label><address id="29e66"><mark id="29e66"><strike id="29e66"></strike></mark></address>
      學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 電腦硬件知識(shí) > 鍵盤(pán)鼠標(biāo) > css實(shí)現(xiàn)鼠標(biāo)懸停時(shí)滑出層提示

      css實(shí)現(xiàn)鼠標(biāo)懸停時(shí)滑出層提示

      時(shí)間: 沈迪豪908 分享

      css實(shí)現(xiàn)鼠標(biāo)懸停時(shí)滑出層提示

        學(xué)習(xí)前端的小伙伴們你們知道怎么用css實(shí)現(xiàn)鼠標(biāo)懸停時(shí)滑出層提示的方法嗎?不知道的話跟著學(xué)習(xí)啦小編一起來(lái)學(xué)習(xí)怎么用css實(shí)現(xiàn)鼠標(biāo)懸停時(shí)滑出層提示。

        css實(shí)現(xiàn)鼠標(biāo)懸停時(shí)滑出層提示的方法介紹

        這是一個(gè)簡(jiǎn)單的鼠標(biāo)懸停提示特效,類似于alt標(biāo)簽,不過(guò)這一種是用純CSS實(shí)現(xiàn),擴(kuò)展性好,而且在提示的層里可以加入圖片或其它布局,這個(gè)要根據(jù)你的需要了。

        代碼如下:

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

        <html xmlns="http://www.w3.org/1999/xhtml">

        <head>

        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <title>css實(shí)現(xiàn)層提示</title>

        <style>

        div{

        clear:both;

        margin:5px 0 0 0;

        font-size:12px;

        line-height:22px;

        }

        a.alt{

        position:relative;

        background-color:#fff;

        float:left;

        width:158px;height:20px;

        margin:0 auto;

        border:1px solid #eee;

        text-align:center;

        text-decoration:none;

        color:#0066cc;

        }

        a.alt:hover{

        background:#fff;

        text-decoration:none;z-index:2;

        }

        a.alt span{

        display:none;

        }

        a.alt:hover span{

        position:absolute;

        display:block;

        top:-1px;left:158px;

        width:130px;height:60px;

        border:1px solid #eee;

        z-index:1;

        }

        </style>

        </head>

        <body>

        <div>

        <a class='alt' href="/"><span>一資料網(wǎng)站</span>學(xué)習(xí)啦</a>

        </div>

        <div>

        <a class='alt' href="/"><span>給你實(shí)用的CSS代碼</span>網(wǎng)頁(yè)特效庫(kù)</a>

        </div>

        </body>

        </html>

      css實(shí)現(xiàn)鼠標(biāo)懸停時(shí)滑出層提示相關(guān)文章:

      1.css設(shè)置鼠標(biāo)事件

      2.css怎么設(shè)置鼠標(biāo)沙漏形狀

      3.CSS怎么控制鼠標(biāo)形狀

      4.css怎么設(shè)置鼠標(biāo)形狀

      1949865