《
CSS的”弹出式“图像浏览器》文章地址:http://www.tfxk.com/wangyesheji/jianzhanjingyan/0302334302013.htm
运行代码复制代码另存代码珍藏本页 [Ctrl+A 全体抉择 提醒:你可先修正局部代码,再按运行]
以下是援用片断:
<style type="text/css">
.thumbnail{
position: relative;
z-index: 0,CSS特殊性概念知识普及;
}
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px,CSS特殊性概念 样式规则的次序;
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=" width="100px" height="66px" border="0" /><span><img src=" /><br />Simply beautiful.</span><,CSS滤镜效果之雷达屏幕;/a>
<a class="thumbnail" href="#thumb"><img src=" width="100px" height="66px" border="0" />,CSS滤镜效果之英雄救美;<span><img src=" /><br />So real, it's unreal. Or is it?</span></a>
--> [
网站建设之]CSS的”弹出式“图像阅读器
转自Dynamic Drive,纯CSS的,原理就是在a标志里面放两张图片,一张大图,一张小图,畸形情形下小图可见,大图暗藏,a:hover就显示大图了
<style type=",CSS滤镜效果之发光的文字;text/css",CSS清除浮动的应用 位置影响IE和Chrom浏览器的错位;> ,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,CSS清除浮动 万能float闭合; 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; } ,CSS清理浮动的全家.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=" width="100px" height="66px" border="0" /><span>,CSS清理浮动方式更简洁的方案;<img src=" /><br />Simply beautiful.</span></a> <a class="thumbnail" href="#thumb"><img src=" width="100px" height="66px" border="0" /><span><img src=" /><br />So real, it's unreal. Or is it?</span></a>
Tag:浏览器 浏览器
(责任编辑:网站建设)
CSS的”弹出式“图像浏览器相关文章