DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> CSS入門知識 >> CSS詳解 >> CSS制作的“彈出式”圖像浏覽器特效
CSS制作的“彈出式”圖像浏覽器特效
編輯:CSS詳解     

<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" href="#thumb"><img src="/School/UploadFiles_7810/201104/20110411084759276.jpg" width="100px" height="66px" border="0" /><span><img src="/School/UploadFiles_7810/201104/20110411084801639.jpg" /><br />Simply beautiful.</span></a>

<a class="thumbnail" href="#thumb"><img src="/School/UploadFiles_7810/201104/20110411084803267.jpg" width="100px" height="66px" border="0" /><span><img src="/School/UploadFiles_7810/201104/20110411084803967.jpg" /><br />So real, it's unreal. Or is it?</span></a>

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved