国产宅男网站在线|亚洲A级性爱免费视频|亚洲中精品级在线|午夜福利AA毛

  • <dd id="gf5jf"><th id="gf5jf"></th></dd>

    <cite id="gf5jf"><label id="gf5jf"></label></cite>
  • <div id="gf5jf"><listing id="gf5jf"></listing></div>
    學習啦 > 學習電腦 > 電腦硬件知識 > 鍵盤鼠標 > css實現(xiàn)鼠標懸停時滑出層提示

    css實現(xiàn)鼠標懸停時滑出層提示

    時間: 沈迪豪908 分享

    css實現(xiàn)鼠標懸停時滑出層提示

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

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

      這是一個簡單的鼠標懸停提示特效,類似于alt標簽,不過這一種是用純CSS實現(xiàn),擴展性好,而且在提示的層里可以加入圖片或其它布局,這個要根據(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實現(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>學習啦</a>

      </div>

      <div>

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

      </div>

      </body>

      </html>

    css實現(xiàn)鼠標懸停時滑出層提示相關文章:

    1.css設置鼠標事件

    2.css怎么設置鼠標沙漏形狀

    3.CSS怎么控制鼠標形狀

    4.css怎么設置鼠標形狀

    1949865