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

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

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

轉(zhuǎn)自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>

 
 
主站蜘蛛池模板: 库车县| 阿图什市| 疏附县| 平泉县| 威信县| 常山县| 沂南县| 永川市| 岐山县| 滨海县| 荆门市| 怀安县| 新乡县| 贵阳市| 武城县| 正定县| 同仁县| 鄂州市| 灵台县| 通渭县| 洱源县| 宜州市| 湟源县| 绍兴县| 通道| 湖南省| 古蔺县| 历史| 凯里市| 广元市| 泽普县| 邳州市| 东乡族自治县| 西昌市| 沅陵县| 林周县| 翁牛特旗| 临武县| 辽中县| 固阳县| 孝义市|