js,QQ相册图片的上页、下页问题,css样式。

来源:百度知道 编辑:UC知道 时间:2024/05/12 02:01:46
一张图片,左右等分2部分,2个部分是2个不同的链接,这个怎么做?

不难。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.pic {height:129px; width:270px; border:1px solid #ccc; position:relative; margin:20px;}
.pic a { height:129px;width:50%; position:absolute; top:0; display:block; background:#ccc; filter:alpha(opacity=0); opacity: 0; }
.pic a:hover { cursor:pointer;}
.pre {left:0;}
.next {right:0;}
</style>
</head>

&l