好玩的样式—放大效果

1.寻寻觅觅

先要找个到好效果~才能抄

如: www.cssplay.co.uk      www.cssbeauty.com 等都能常常看到.

今天不小心路过cssplay

www.cssplay.co.uk/menus/magnifier2.html

好像好好玩滴样子

自己开起topstyle来试一下

建议大家看到好玩的样式~不要急着看他的CSS~没意义

2.自己动手~丰衣足食

运行代码框

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>

<html xmlns=”http://www.w3.org/1999/xhtml”>

<head>

<title>a</title>

<style type=”text/css”>

ul#hovershow{

list-style-type: none;

margin: 50px;

float: left;

display: inline;

clear: both;

}

ul#hovershow li{

float: left;

display: inline;

width:64px;

height: 64px;

margin: 2px;

}

ul#hovershow li a {

display: block;width:64px;

height: 64px;

}

ul#hovershow li a img{

border:1px #666 solid;

width:100%;

height:100%;

}

ul#hovershow li a:hover{

position: absolute;

z-index:100;

margin: -32px 0 0 -32px;

}

ul#hovershow li a:hover img{

width:128px;

height:128px;

border:1px red solid;

}

</style>

</head>

<body>

<ul id=”hovershow”>

<li><a href=”1#” title=”test”><img src=”http://www.rotui.net/lab/a/zoom/images/1.jpg” width=”128″ height=”128″ alt=”test” /></a></li>

<li><a href=”2#” title=”test”><img src=”http://www.rotui.net/lab/a/zoom/images/2.jpg” width=”128″ height=”128″ alt=”test” /></a></li>

<li><a href=”3#” title=”test”><img src=”http://www.rotui.net/lab/a/zoom/images/3.jpg” width=”128″ height=”128″ alt=”test” /></a></li>

<li><a href=”4#” title=”test”><img src=”http://www.rotui.net/lab/a/zoom/images/4.jpg” width=”128″ height=”128″ alt=”test” /></a></li>

第 1 2 3 4 页

好玩的样式—放大效果

相关文章:

你感兴趣的文章:

标签云: