您现在的位置是:首页 > 网站技术问题网站技术问题
网站图片上下间隙问题(以下代码中所展示的图片上面之间会有一个间隙...
江湖快报网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>
很赞哦! ()
下一篇:返回列表
相关文章
随机图文
-
dreamweaver中网页排版问题
这个页面应该是链接外部样式表的,你要先把样式表也下载到本地,然后修改样式表的路径:<link rel= "stylesheet" type="text/css" href="样式表文件.css"> ;或者这个页面是用表 -
怎么解决企业的招聘难题?
有很多企业面临着招不到人,招到的人不好用,招到的人好用但留不住人,这一系列跟招聘有关的问题,其实这一点目前有效的方法有两点: 第一:找猎头帮你招到满意的人。 第二:在大 -
有哪些技术学习网站
慕课网 慕课网是垂直的互联网IT技能免费学习网站。以独家视频教程、在线编程工具、学习计划、问答社区为核心特色。在这里,你可以找到最好的互联网技术牛人,也可以通过免费 -
视频点播的现状未来
随着媒体服务的数字化及互动程度日益提高,压缩技术的进步促使带宽要求不断降低,当今的市场正经历一场重大变革。随着消费业务日益增多,网络接入带宽得到了广泛普及。上述趋势与