| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 485 人关注过本帖
标题:边框问题【求助】
只看楼主 加入收藏
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
收藏
 问题点数:0 回复次数:3 
边框问题【求助】

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <script type="text/javascript"> document.write('<table align=center width=760 border=0 cellpadding=0 cellspacing=0 style=BORDER-LEFT: #cccccc 1px solid;BORDER-RIGHT: #cccccc 1px solid>'); document.write(' <tr> '); document.write(' <td width=774 height=120 align=center class=border01 bgcolor=#FFFFFF>'); document.write(' <div id=demo style=overflow:hidden;width:750;align=center>'); document.write(' <table border=0 align=center cellpadding=1 cellspacing=1 cellspace=0 >'); document.write(' <tr>'); document.write(' <td valign=top bgcolor=ffffff id=marquePic1> '); document.write(' <table width=90% border=0 cellspacing=0 cellpadding=0>'); document.write(' <tr align=center> '); document.write(' <td><a href="#" target="new"><img src="images/logo1.jpg" width="140" height="77"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo2.gif" width="170" height="87"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo3.gif" width="142" height="59"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo4.gif" width="100" height="32"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo5.gif" width="88" height="31"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo6.jpg" width="88" height="31"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo7.gif" width="100" height="50"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo8.gif" width="100" height="50"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo9.gif" width="164" height="70"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo10.gif" width="182" height="70"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo11.gif" width="96" height="31"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo12.jpg" width="88" height="31"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo13.gif" width="88" height="31"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo14.gif" width="88" height="31"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo15.gif" width="88" height="31"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo16.gif" width="88" height="31"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo17.gif" width="100" height="50"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo18.gif" width="100" height="50"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo19.gif" width="120" height="60"></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo20.jpg" width="88" height="45"></a></td>'); document.write(' </tr>'); document.write(' </table>'); document.write(' </td>'); document.write(' <td id=marquePic2 valign=top></td>'); document.write(' </tr>'); document.write(' </table>'); document.write(' </div>'); document.write(' </td>'); document.write(' </tr>'); document.write(' </table>'); var speed=10 marquePic2.innerHTML=marquePic1.innerHTML function Marquee(){ if(demo.scrollLeft>=marquePic1.scrollWidth){ demo.scrollLeft=0 }else{ demo.scrollLeft++ } } var MyMar=setInterval(Marquee,speed) demo.onmouseover=function() {clearInterval(MyMar)} demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}

</script>

这是程序中有个表格border=0 可预览时,每个图片还是有一个边框,怎么办?

搜索更多相关主题的帖子: 边框 
2005-09-12 11:55
BADIORI
Rank: 1
等 级:新手上路
帖 子:63
专家分:0
注 册:2004-11-13
收藏
得分:0 
把图象标签也设置为border=0

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <script type="text/javascript"> document.write('<table align=center width=760 border=0 cellpadding=0 cellspacing=0 style=BORDER-LEFT: #cccccc 1px solid;BORDER-RIGHT: #cccccc 1px solid>'); document.write(' <tr> '); document.write(' <td width=774 height=120 align=center class=border01 bgcolor=#FFFFFF>'); document.write(' <div id=demo style=overflow:hidden;width:750;align=center>'); document.write(' <table border=0 align=center cellpadding=1 cellspacing=1 cellspace=0 >'); document.write(' <tr>'); document.write(' <td valign=top bgcolor=ffffff id=marquePic1> '); document.write(' <table width=90% border=0 cellspacing=0 cellpadding=0>'); document.write(' <tr align=center> '); document.write(' <td><a href="#" target="new"><img src="images/logo1.jpg" width="140" height="77" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo2.gif" width="170" height="87" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo3.gif" width="142" height="59" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo4.gif" width="100" height="32" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo5.gif" width="88" height="31" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo6.jpg" width="88" height="31" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo7.gif" width="100" height="50" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo8.gif" width="100" height="50" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo9.gif" width="164" height="70" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo10.gif" width="182" height="70" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo11.gif" width="96" height="31" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo12.jpg" width="88" height="31" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo13.gif" width="88" height="31" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo14.gif" width="88" height="31" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo15.gif" width="88" height="31" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo16.gif" width="88" height="31" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo17.gif" width="100" height="50" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo18.gif" width="100" height="50" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo19.gif" width="120" height="60" border=0></a></td>'); document.write(' <td><a href="#" target="new"><img src="images/logo20.jpg" width="88" height="45" border=0></a></td>'); document.write(' </tr>'); document.write(' </table>'); document.write(' </td>'); document.write(' <td id=marquePic2 valign=top></td>'); document.write(' </tr>'); document.write(' </table>'); document.write(' </div>'); document.write(' </td>'); document.write(' </tr>'); document.write(' </table>'); var speed=10 marquePic2.innerHTML=marquePic1.innerHTML function Marquee(){ if(demo.scrollLeft>=marquePic1.scrollWidth){ demo.scrollLeft=0 }else{ demo.scrollLeft++ } } var MyMar=setInterval(Marquee,speed) demo.onmouseover=function() {clearInterval(MyMar)} demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}

</script>


2005-09-12 12:24
islet
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:89
帖 子:6548
专家分:0
注 册:2005-1-28
收藏
得分:0 
你在图片属性中加上border=0就行了

普通图片不加也行 可是一旦给图片加上链接 就要加上border=0 否则就有一个框
2005-09-12 13:05
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
收藏
得分:0 
谢谢朋友们,中秋节快乐

2005-09-13 17:26
快速回复:边框问题【求助】
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.034982 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved