黄色在线观看视频网站,精品久久蜜桃,这里只有视频精品,97久久精品人人爽人人爽蜜臀

CSS的“彈出式”圖像瀏覽器
時間:2006年05月18日 內容來源: 互諾科技 瀏覽量:0

CSS的”彈出式“圖像瀏覽器

轉自Dynamic Drive,純CSS的,原理就是在a標記里面放兩張圖片,一張大圖,一張小圖,正常情況下小圖可見,大圖隱藏,a:hover就顯示大圖了

以下是引用片段:
<style type="text/css">

.thumbnail{
position: relative;
z-index: 0;
}

.thumbnail:hover{
background-color: transparent;
z-index: 50;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: 60px; /*position where enlarged image should offset horizontally */

}

</style>
<a class="thumbnail" ><img src="/userfiles/Auto/2014724"/userfiles/Auto/2012626tree_thumb.jpg" target=_blank>/userfiles/Auto/2012626tree_thumb.jpg" width="100px" height="66px" border="0" /><span><img src="/userfiles/Auto/2014724"/userfiles/Auto/2012626tree.jpg" target=_blank>/userfiles/Auto/2012626tree.jpg" /><br />Simply beautiful.</span></a>

<a class="thumbnail" ><img src="/userfiles/Auto/2014724"/userfiles/Auto/2012626ocean_thumb.jpg" target=_blank>/userfiles/Auto/2012626ocean_thumb.jpg" width="100px" height="66px" border="0" /><span><img src="/userfiles/Auto/2014724"/userfiles/Auto/2012626ocean.jpg" target=_blank>/userfiles/Auto/2012626ocean.jpg" /><br />So real, it's unreal. Or is it?</span></a>

 
 
主站蜘蛛池模板: 登封市| 甘南县| 惠东县| 丰县| 宾阳县| 冀州市| 正镶白旗| 雷州市| 上栗县| 大石桥市| 五台县| 永登县| 河曲县| 永顺县| 澄城县| 伊金霍洛旗| 孝昌县| 沐川县| 什邡市| 上栗县| 甘南县| 万山特区| 右玉县| 天水市| 辽阳市| 繁峙县| 保山市| 阳原县| 安顺市| 巴林右旗| 石屏县| 河东区| 兰溪市| 邹城市| 思南县| 靖西县| 安达市| 东明县| 南昌县| 闵行区| 晋江市|