请问在asp里面怎样让几张图片紧紧靠在一块,中间没有一点空隙?

请问在asp里面怎样让几张图片紧紧靠在一块,中间没有一点空隙?

1for i=1 to len(Str_num)   
2Str_n=mid(Str_num,i,1)
1<img border="0" height="57" src="```
2=str_n
3```.bmp" width="17"/>
1next

这段代码中间有空隙
---------------------------------------------------------------

用表格,表格的表框和间距都设为0,而单元格不要设置width属性,根据图片的张数循环几个

1<td></td>

就可以了
---------------------------------------------------------------

单纯用手工设置表格,而且要放置大小不同的图片会很麻烦
---------------------------------------------------------------

表格。
---------------------------------------------------------------

这不是asp的功能,是html。请以后要讲清楚。
---------------------------------------------------------------

1<table border="0" cellpadding="0" cellspacing="0" width="100%">
2<tr>   

for i=1 to len(Str_num)
Str_n=mid(Str_num,i,1)

1<td>
2<img border="0" height="57" src="```
3=str_n
4```.bmp" width="17"/>
5</td>   

next

1</tr>
2</table>

---------------------------------------------------------------

大哥们,不关ASP的事,HTML中IMG标记有一个VSPACE和一个HSPACE是关于上下外距和左右外距的,将其设为0呀,如下:

1<img hspace="0" src="src" vspace="0"/>

菩提本非树,明镜亦非台
本来无一物,何处惹尘埃

Published At
Categories with Web编程
Tagged with
comments powered by Disqus