html网页中图片横向滚动

我想在html里实现一行图片滚动效果有几张图片排成一行然后自动向左滚动要连续的不要停止然后图片左侧是文字要一起滚动最好房子div里(我想做的是人物介绍每一张图片左侧是这个... 我想在html里 实现一行图片滚动效果 有几张图片 排成一行然后自动向左滚动 要连续的不要停止 然后图片左侧是文字 要一起滚动最好房子div里 (我想做的是人物介绍 每一张图片左侧是这个人的姓名)每张中间有几像素空格...

一定要好用啊...
下载内容
展开
 我来答
刺友互
高粉答主

2019-05-30 · 每个回答都超有意思的
知道答主
回答量:3979
采纳率:100%
帮助的人:58.9万
展开全部

1、有截取滚动网页的软件,如FSCapture,就可以截取整个网页。

2、 然后打开要截取的网页,在FSCapture悬浮窗口上找到滚动截图工具。

3、在默认情况下,是截整个界面,包括浏览器窗口,如果默认,下面有提示,点一下鼠标左键即可。

4、 如果要自定义截图窗口,按住Ctrl键,就会出现一个红色十字架,用鼠标拖动这个红十字架,框住想要的窗口。然后拖动右侧的滚动条到上端,或者点下端的滚动箭头,就能截取整个网页。

5、完成截图后,会自动返回到FSCapture编辑窗口,这时只要保存即可。

6、 选择一个保存文件夹,定义一个保存文件名,如滚动截图,按保存。

7、再用普通的看图软件ACDSee打开,就能看到一个长长的网页图,看看长宽比930x1776。

dwdreamer_wo
推荐于2018-02-27 · 超过17用户采纳过TA的回答
知道答主
回答量:29
采纳率:0%
帮助的人:44.3万
展开全部
可以使用 jquery 滚动效果,但你要汇入 jquery + jquery ui + jquery easing plugin
以下是循环的jquery 滚动效果

<script type="text/javascript" src="jquery-1.5.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.8.14_effect.js"></script>
<script type="text/javascript" src="jquery.easing.1.3.js"></script>
<script>
var no_of_img = 0;

function auto_scroll(){
var distance = 200;
var speed = 1000;
var elemBasePos = 0;
$("#container > div").dequeue();
for(i=0; i<no_of_img; i++){
if(i == 1){
$("#container > div:eq(" + i + ")").animate({"left": (elemBasePos + distance * (i - 1) ) + "px"}, speed, "easeOutExpo");
} else {
$("#container > div:eq(" + i + ")").animate({"left": (elemBasePos + distance * (i - 1)) + "px"}, speed, "easeOutExpo");
}
}

var elem = $("#container > div:eq(0)");
$("#container > div:eq(0)").remove();
$("div#container").append(elem);
$("#container > div:eq(" + (no_of_img - 1) + ")").dequeue().css("left", (elemBasePos + distance * (no_of_img)) + "px");
$("#container > div:eq(" + (no_of_img - 1) + ")").animate({"left": (elemBasePos + distance * (no_of_img - 1)) + "px"}, speed, "easeOutExpo");

$("#container > div").dequeue();
for(i=0; i<no_of_img; i++){
if(i == 1){
$("#container > div:eq(" + i + ")").animate({"left": (elemBasePos + distance * (i - 1) ) + "px"}, speed, "easeOutExpo");
} else {
$("#container > div:eq(" + i + ")").animate({"left": (elemBasePos + distance * (i - 1)) + "px"}, speed, "easeOutExpo");
}
}

var elem = $("#container > div:eq(0)");
$("#container > div:eq(0)").remove();
$("div#container").append(elem);
$("#container > div:eq(" + (no_of_img - 1) + ")").dequeue().css("left", (elemBasePos + distance * (no_of_img)) + "px");
$("#container > div:eq(" + (no_of_img - 1) + ")").animate({"left": (elemBasePos + distance * (no_of_img - 1)) + "px"}, speed, "easeOutExpo");
}

function init(){
for(i=0; i<no_of_img; i++){
$("#container > div:eq(" + i + ")").css("left", 200 * i+'px');
}
}

$(document).ready(function() {
no_of_img = $(".imgcontainer").length;
init();
setInterval('auto_scroll()',2000);
});

</script>
<style>
body{margin:0;padding:0;}
#container { position:relative; height:150px;overflow:hidden;}
#container div.imgcontainer { position:absolute; top:0px;height:150px;width:150px;}
#container div table { width:150px;}
</style>

<div id="container">
<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>
<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>
<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>
<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>
<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>
<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>
<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>
<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>

<div class="imgcontainer">
<table cellpadding=0 cellspacing=0 border=0>
<tr valign=top>
<td>文字1文字1文字1文字1</td>
<td><img src="image.jpg" border=0 width=50 height=50 ></td>
</tr>
</table>
</div>
</div>
更多追问追答
追问
问一下  jquery + jquery ui + jquery easing plugin 这个 哪来的 ,对jpuery 不熟...
追答
jquery 是一個 javascript framework 可以簡化及加強 javascript 所做到的功能與效果~
而 jquery ui 是 jquery 官方的 插件
而 jquery easing plugin 是第三方建立的插件

参考资料: http://jquery.com/

本回答被提问者和网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
嗳你不知可否
2016-01-16 · TA获得超过7183个赞
知道大有可为答主
回答量:4507
采纳率:81%
帮助的人:1058万
展开全部

HTML页面图片横向滚播效果:

<html>
<head>
<style>
body{margin:0px;}
ul{list-style:none; border:0; padding:0px; margin:0px;}
li{list-style:none; float:left; border:0; padding:0px; margin:0px;}
img{border:0px;  padding:0px; margin:0px;}
</style>
</head>
<body>
<center><div id="div1" style="overflow:hidden; cursor:hand; margin-top:50px;" onmouseover="stop()" onmouseout="ss()">
           <ul id="img" style="clear:both;"><!--放图片的容器,此容器在div1里滚动-->
        <!--以下是要滚动的内容-->
              <li><img id="img0" src="http://www.alixixi.com/images/index180.gif" width="100" height="100" style="display:block;" /></li>
     <li><img id="img1" src="http://www.alixixi.com/images/index180.gif" width="100" height="100" style="display:block;" /></li>
     <li><img id="img2" src="http://www.alixixi.com/images/index180.gif" width="100" height="100" style="display:block;" /></li>
     <li><img id="img3" src="http://www.alixixi.com/images/index180.gif" width="100" height="100" style="display:block;" /></li>
        </ul>     
</div>
</center>
<script language="javascript">
var w,h,id,speed,Html
w=400;//-------滚动容器的宽度--------//
h=100;//-------滚动容器的高度--------//
id="div1";//-------滚动容器的id--------//
direction="left";//-------滚动方向有四个值left,right,up,down,自己试试--------//
speed="100";//-------滚动速度100相当于1秒,越小越快--------//
imgDiv="img";//-------放图片的容器id--------//
HtmlL=document.getElementById(imgDiv).innerHTML;
HtmlT=document.getElementById(id).innerHTML;
switch (direction)
{
case "left":
     document.getElementById(imgDiv).innerHTML=HtmlL+HtmlL;
  break;
case "right":
     document.getElementById(imgDiv).innerHTML=HtmlL+HtmlL;
  break;
case "up":
     document.getElementById(id).innerHTML=HtmlT+HtmlT;
  break;
case "down":
     document.getElementById(id).innerHTML=HtmlT+HtmlT;
  break;
}
function ss(){
document.getElementById(id).style.width=w;
document.getElementById(id).style.height=h;
document.getElementById(imgDiv).style.width=w*2;
document.getElementById(imgDiv).style.height=h;
var ele
ele=document.getElementById("div1");
switch (direction)
{
case "left":
ele.scrollLeft=ele.scrollLeft+5;
if (ele.scrollLeft>=w)
{
ele.scrollLeft=0;
}
break;
case "right":
ele.scrollLeft=ele.scrollLeft-5;
if (ele.scrollLeft<=0)
{
ele.scrollLeft=w;
}
break;
case "up":
ele.scrollTop=ele.scrollTop+5;
if (ele.scrollTop>=h)
{
ele.scrollTop=0;
}
break;
case "down":
ele.scrollTop=ele.scrollTop-5;
if (ele.scrollTop<=0)
{
ele.scrollTop=h;
}
break;
}
t=setTimeout("ss()",speed);
}
function stop(){
document.getElementById("div1").scrollLeft=document.getElementById("div1").scrollLeft;
document.getElementById("div1").scrollTop=document.getElementById("div1").scrollTop;
     clearTimeout(t);
}
setTimeout("ss()",100);
</script>
</body>
</html>
<a href="rul">网站名称</a>
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
n450098694
2011-09-10 · TA获得超过132个赞
知道小有建树答主
回答量:304
采纳率:0%
帮助的人:205万
展开全部
<marquee>
<table width="200" border="1">
<tr>
<td>人物介绍一</td>
<td><img src="images/1260423708.gif"></td>
<td>人物介绍而</td>
<td><img src="images/1260423708.gif"></td>
<td>人物介绍三</td>
<td><img src="images/1260423708.gif"></td>
<td>人物介绍四</td>
<td><img src="images/1260423708.gif"></td>
</tr>
</table>
</marquee>
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
wixiaoduan
2011-09-09 · TA获得超过1271个赞
知道大有可为答主
回答量:1911
采纳率:50%
帮助的人:1185万
展开全部
如果没有特殊要求,可以用<marquee ></marquee >标签,中间放你需要滚动的内容(<marquee >有参数可设置滚动的方向,速度等,具体请百谷一下<marquee >)
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(5)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式