<!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="yun_qi_img/1.jpg" width="128" height="128" alt="test" /></a></li> <li><a href="2#" title="test"><img src="yun_qi_img/2.jpg" width="128" height="128" alt="test" /></a></li> <li><a href="3#" title="test"><img src="yun_qi_img/3.jpg" width="128" height="128" alt="test" /></a></li> <li><a href="4#" title="test"><img src="yun_qi_img/4.jpg" width="128" height="128" alt="test" /></a></li> <li><a href="5#" title="test"><img src="yun_qi_img/5.jpg" width="128" height="128" alt="test" /></a></li> <li><a href="6#" title="test"><img src="yun_qi_img/6.jpg" width="128" height="128" alt="test" /></a></li> <li><a href="7#" title="test"><img src="yun_qi_img/7.jpg" width="128" height="128" alt="test" /></a></li> </ul> </body> </html>
下面看條二種效果,分頁效果. <!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#hovershow2{ list-style-type: none; margin: 50px; width:200px; float: left; display: inline; clear: both; } ul#hovershow2 li{ float: left; display: inline; width:20px; height: 20px; margin: 2px; } ul#hovershow2 li a { text-decoration: none; display: block; width:20px; height:20px; border:1px red solid; background-color: White; line-height: 20px; font-size: 12px; text-align: center; } ul#hovershow2 li a:hover{ position: absolute; width:40px; height: 40px; line-height: 40px; font-size: 32px; z-index:100; margin: -10px 0 0 -10px; } </style> </head> <body> <ul id="hovershow2"> <li><a href="1#" title="test"><span>1</span></a></li> <li><a href="2#" title="test"><span>2</span></a></li> <li><a href="3#" title="test"><span>3</span></a></li> <li><a href="4#" title="test"><span>4</span></a></li> <li><a href="5#" title="test"><span>5</span></a></li> <li><a href="6#" title="test"><span>6</span></a></li> <li><a href="7#" title="test"><span>7</span></a></li> </ul> </body> |