61,115
社区成员
发帖
与我相关
我的任务
分享
<!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">
#divCont{
width:500px;
height:120px;
border:1px solid red;
white-space:nowrap;
overflow:auto;
}
#divCont ul{
overflow:auto;
width:100%;
height:100%;
margin:0;
}
#divCont li{
width:90px;
height:100px;
border:1px solid green;
margin-left:6px;
margin-top:8px;
}
</style>
</head>
<body>
<input type="button" value=" <-" onclick="showPre()"/>
<input type="button" value="->" onclick="showNext()"/>
<div id="divCont">
<ul>
<li style="float:left; clear:left;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
</ul>
</div>
</body>
</html>
<!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">
#divCont{
width:500px;
height:120px;
border:1px solid red;
white-space:nowrap;
overflow:auto;
}
#divCont ul{
overflow:auto;
width:100%;
height:100%;
margin:0;
}
#divCont li{
width:90px;
height:100px;
border:1px solid green;
margin-left:6px;
margin-top:8px;
}
</style>
</head>
<body>
<input type="button" value=" <-" onclick="showPre()"/>
<input type="button" value="->" onclick="showNext()"/>
<div id="divCont">
<ul>
<li style="float:left; clear:left;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
<li style="float:left; clear:none;"><img height="100%" width="100%" src="333" /></li>
</ul>
</div>
</body>
</html>
<style type="text/css">
<!--
#demo {
background: #FFF;
overflow:auto;
border: 1px dashed #CCC;
width: 500px;
}
#demo img {
border: 3px solid #F2F2F2;
}
#indemo {
float: left;
width: 800%;
}
#demo1 {
float: left;
}
#demo2 {
float: left;
}
-->
</style>
<div id="demo">
<div id="indemo">
<div id="demo1">
<a href="#"><img src="http://www.cnrui.cn/other/link/Clear_logo.gif" border="0" /></a>
<a href="#"><img src="http://www.cnrui.cn/other/link/Clear_logo.gif" border="0" /></a>
<a href="#"><img src="http://www.cnrui.cn/other/link/Clear_logo.gif" border="0" /></a>
<a href="#"><img src="http://www.cnrui.cn/other/link/Clear_logo.gif" border="0" /></a>
<a href="#"><img src="http://www.cnrui.cn/other/link/Clear_logo.gif" border="0" /></a>
<a href="#"><img src="http://www.cnrui.cn/other/link/Clear_logo.gif" border="0" /></a>
</div>
<div id="demo2"></div>
</div>
</div>