您现在的位置是:首页 > 网站技术问题网站技术问题

网站图片上下间隙问题(以下代码中所展示的图片上面之间会有一个间隙...

江湖快报网2022-11-24 01:44:13【网站技术问题】人已围观

简介<img> 中加一个 style=margin:0px;padding:0px;
谁能提供这个网站最下面动态图片的相关代码
代码如下:

<table align=center width=1004 height=40>
<tr>
<td width=1004 he

<img> 中加一个 style=margin:0px;padding:0px;

谁能提供这个网站最下面动态图片的相关代码

代码如下:

<table align=center width=1004 height=40>
<tr>
<td width=1004 height=40>
<fieldset style=padding: 5px;>
<legend style=font-weight: bold; font-size:14px;>施工案例</legend>
<div id='demo' style='overflow: hidden; height:75px; width: 980px;white-space: nowrap; text-align:center;'>
<div id='demo1' style='display:inline;'>
<!-- 这里可以放置数据库操作代码. -->
<span style=margin:5px 5px 5px 0px;><img src=images1/1.JPG width=100 height=75 class=image border=1 alt=1.JPG /></a></span>
<span style=margin:5px 5px 5px 0px;><img src=images1/2.JPG width=100 height=75 class=image border=1 alt=2.jpg /></a></span>
<span style=margin:5px 5px 5px 0px;><img src=images1/3.JPG width=100 height=75 class=image border=1 alt=3.jpg /></a></span>
<span style=margin:5px 5px 5px 0px;><img src=images1/4.JPG width=100 height=75 class=image border=1 alt=4.jpg /></a></span>
<span style=margin:5px 5px 5px 0px;><img src=images1/5.JPG width=100 height=75 class=image border=1 alt=5.JPG /></a></span>
<span style=margin:5px 5px 5px 0px;><img src=images1/6.JPG width=100 height=75 class=image border=1 alt=6.JPG /></a></span>
<span style=margin:5px 5px 5px 0px;><img src=images1/7.JPG width=100 height=75 class=image border=1 alt=7.jpg /></a></span>
<span style=margin:5px 5px 5px 0px;><img src=images1/8.JPG width=100 height=75 class=image border=1 alt=8.jpg /></a></span>
<span style=margin:5px 5px 5px 0px;><img src=images1/9.JPG width=100 height=75 class=image border=1 alt=9.jpg /></a></span>
</div>
<div id='demo2' style='display:inline;'></div>
</div>
<script language=JavaScript>
<!--
var speed=1; //值越大速度越慢
demo2.innerHTML=demo1.innerHTML;
function Marquee(){

//左移
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}

//右移
//if(demo1.offsetWidth-demo.scrollLeft>=0)
//demo.scrollLeft+=demo2.offsetWidth
//else{
//demo.scrollLeft--
//}

}
var MyMar=setInterval(Marquee,speed)
//这里可以控制鼠标悬停效果
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
//-->
</script>
</fieldset>
</td>
</tr>
</table>

Tags:下面   代码   这个

很赞哦! ()

文章评论

    共有条评论来说两句吧...

    用户名:

    验证码:

本站推荐