国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

javascript實現鼠標移到Image上方時顯示文字效果的方法

2019-11-20 11:53:25
字體:
來源:轉載
供稿:網友

本文實例講述了javascript實現鼠標移到Image上方時顯示文字效果的方法。分享給大家供大家參考。具體如下:

先看一下運行效果截圖:

具體代碼如下:

<!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>jquery鼠標移到Image上方時顯示文字效果</title><style>.bot .sendList {  margin-right:6px}.explore {  width:936px;  margin:20px auto 0;  overflow:hidden;  position:relative;  font-size:0px;}.explore li {  width:160px;  height:150px;  overflow:hidden;  display:inline-block;  position:relative;}.explore li {*display:inline;}.explore li .wqPic {  width:160px;  height:150px;  overflow:hidden;}.explore .wqLink {  display:block;  width:160px;  height:150px;  color:#FFF;  text-align:center;  font-family:"微軟雅黑"}.explore .wqItem .wqName {  position:absolute;  bottom:0;  left:0;  width:130px;  height:40px;  line-height:40px;  font-size:16px;  overflow:hidden;  padding:0 10px;}.explore .wqItem .bg {  background:#333;  opacity:0.8;  filter:alpha(opacity = 80);  position:absolute;  bottom:0;  left:0;  width:150px;  height:40px;}.explore .wqLink:hover {  cursor:pointer;  text-decoration:none;}.explore .wqLink:hover .wqItem .bg {  height:150px;}.explore .wqLink:hover .wqItem .wqName, .explore .detail {  visibility:hidden;}.explore .wqLink:hover .detail {  visibility:visible;}.explore .detail {  background:#000;  position:absolute;  top:128px;  left:0;  width:160px;  line-height:22px;  height:22px;  font-size:12px;  filter:alpha(opacity = 65);}.explore .detail .wqName {  font-size:16px;  padding:0 10px;  line-height:22px;}.explore .detail .info {  margin-top:10px;}</style></head><body><div id="topWrap"> <div class="wqSquare"> <div class="explore">  <ul>  <li> <a onmousedown="MI.Bos('wQBtnBigImgQun')" href="#" class="wqLink">   <div class="wqItem"> <img src="http://files.VeVB.COm/file_images/article/201508/201587150400220.jpg" class="wqPic" /> </div>   <div class="detail">   <div class="wqName">天天好心情</div>   </div>   </a> </li>   <li> <a onmousedown="MI.Bos('wQBtnBigImgQun')" href="#" class="wqLink">   <div class="wqItem"> <img src="http://files.VeVB.COm/file_images/article/201508/201587150400220.jpg" class="wqPic" /> </div>   <div class="detail">   <div class="wqName">天天好心情</div>   </div>   </a> </li>  </ul> </div> </div></div></body></html>

希望本文所述對大家的javascript程序設計有所幫助。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 望谟县| 台北县| 三门峡市| 汶上县| 额敏县| 柯坪县| 大荔县| 慈利县| 铜陵市| 桦甸市| 大英县| 板桥市| 吉木乃县| 星子县| 福泉市| 迁西县| 北宁市| 大埔县| 绵竹市| 芒康县| 贵港市| 乌兰浩特市| 谷城县| 磐石市| 南岸区| 莲花县| 宣威市| 南投县| 浙江省| 拉孜县| 曲松县| 吉隆县| 盐山县| 宜都市| 安塞县| 枝江市| 新乐市| 潞西市| 柳河县| 和龙市| 上杭县|