亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

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

  發(fā)布時(shí)間:2015-05-11 17:25:09   作者:佚名   我要評(píng)論
這篇文章主要為大家介紹了css實(shí)現(xiàn)鼠標(biāo)懸停時(shí)滑出層提示的方法,可實(shí)現(xiàn)鼠標(biāo)懸浮于文字上彈出提示層的效果,非常具有實(shí)用價(jià)值,需要的朋友可以參考下

本文實(shí)例講述了css實(shí)現(xiàn)鼠標(biāo)懸停時(shí)滑出層提示的方法。分享給大家供大家參考。具體分析如下:

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


復(fù)制代碼
代碼如下:
<!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>一個(gè)高品質(zhì)腳本資料網(wǎng)站</span>腳本之家</a>
</div>
<div>
<a class='alt' href="/"><span>給你實(shí)用的CSS代碼</span>網(wǎng)頁特效庫</a>
</div>
</body>
</html>

希望本文所述對(duì)大家的div+css網(wǎng)頁設(shè)計(jì)有所幫助。

相關(guān)文章

最新評(píng)論