六月丁香五月婷婷,丁香五月婷婷网,欧美激情网站,日本护士xxxx,禁止18岁天天操夜夜操,18岁禁止1000免费,国产福利无码一区色费

學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 電腦硬件知識(shí) > 鍵盤鼠標(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í)啦小編一起來學(xué)習(xí)怎么用css實(shí)現(xiàn)鼠標(biāo)懸停時(shí)滑出層提示。

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

  這是一個(gè)簡單的鼠標(biāo)懸停提示特效,類似于alt標(biāo)簽,不過這一種是用純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)頁特效庫</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