最大的网站策划、网站运营、网络营销人才免费学习、培训、认证、展示、交流、工作平台,服务国家经济建设与民族伟大复兴!

查看完整版本: 纯CSS代码实现翻页

chouqiu 2008-4-27 18:20

纯CSS代码实现翻页

纯[wiki]CSS[/wiki]实现翻页效果,原理比较简单,书签配合隐藏。

代码

[color=Red]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[url=http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd[/url]">
<html xmlns="[url=http://www.w3.org/1999/xhtml]http://www.w3.org/1999/xhtml[/url]" xml:lang="zh" lang="zh">
<head profile="[url=http://www.w3.org/2000/08/w3c-synd/]http://www.w3.org/2000/08/w3c-synd/[/url]#">
<meta http-equiv="content-language" c />
<meta http-equiv="content-type" c />
<style>
dl {
position:absolute;
width:240px;
height:170px;
border:10px solid #eee;
}
dd {
margin:0;
width:240px;
height:170px;
overflow:hidden;
}
img {
border:1px solid black
}
dt {
position:absolute;
right:3px;
top:50px;
}
a {
display:block;
margin:1px;
width:20px;
height:20px;
text-align:center;
font:700 12px/20px "宋体",sans-serif;
color:#fff;
text-decoration:none;
background:#666;
border:1px solid #fff;
filter:alpha(opacity=40);
opacity:.4;
}
a:hover {
background:#000
}
</style>
</head>
<body>
<dl>
<dt><a href="#a" title="">1</a><a href="#b" title="">2</a><a href="#c" title="">3</a></dt>
<dd>
<img src="[url=http://www.blueidea.com/articleimg/2007/03/4549/1.jpg]http://www.blueidea.com/articleimg/2007/03/4549/1.jpg[/url]" alt="" title="" id="a" />
<img src="[url=http://www.blueidea.com/articleimg/2007/03/4549/2.jpg]http://www.blueidea.com/articleimg/2007/03/4549/2.jpg[/url]" alt="" title="" id="b" />
<img src="[url=http://www.blueidea.com/articleimg/2007/03/4549/3.jpg]http://www.blueidea.com/articleimg/2007/03/4549/3.jpg[/url]" alt="" title="" id="c" />
</dd>
</dl>
</body>
</html>[/color]

[[i] 本帖最后由 chouqiu 于 2008-4-27 18:22 编辑 [/i]]

370ecom 2008-4-27 18:22

什么也看不到

370ecom 2008-4-27 18:23

看到了,怎么那么慢才调出来呢?::003::
页: [1]
查看完整版本: 纯CSS代码实现翻页