请教大家怎么把代码新增的几个广告之间的间隙为0

2016-07-07 16:07 来源:www.chinab4c.com 作者:ecshop专家

在index.dwt里增加了一个三行三列的表格,在里面写入广告,现在广告之间上下有空白间距,左右没有,想把图片上下之间的间距设为0,应该怎么做?用div也不行,

<table width="1000" border="0" cellspacing="0" cellpadding="0">
<tr>
<th rowspan="2" style="border:solid 0px black; border-bottom:0;"><!-- TemplateBeginEditable name="大框大广告1" -->
<!-- #BeginLibraryItem "/library/ad_position.lbi" -->

{insert name='ads' id=$ads_id num=$ads_num}
<div class="blank"></div>
<!-- #EndLibraryItem -->
<!-- TemplateEndEditable -->
</th>
<th rowspan="2" style="border:solid 0px black; border-bottom:0;"><!-- TemplateBeginEditable name="大框大广告2" -->
<!-- #BeginLibraryItem "/library/ad_position.lbi" -->

{insert name='ads' id=$ads_id num=$ads_num}
<div class="blank"></div>
<!-- #EndLibraryItem -->
<!-- TemplateEndEditable --
></th>
<th valign="top" bordercolor="0" style="border:solid 0px black; border-bottom:0;"><!-- TemplateBeginEditable name="大框小广告上" -->
<!-- #BeginLibraryItem "/library/ad_position.lbi" -->

{insert name='ads' id=$ads_id num=$ads_num} <!-- #EndLibraryItem -->
<!-- TemplateEndEditable -->
</th>
</tr>
<tr>
<td valign="top" bordercolor="0" style="border:solid 0px black; border-bottom:0;"><!-- TemplateBeginEditable name="大框小广告中" -->
<!-- #BeginLibraryItem "/library/ad_position.lbi" -->

{insert name='ads' id=$ads_id num=$ads_num}
<div class="blank"></div>
<!-- #EndLibraryItem -->
<!-- TemplateEndEditable -->
</td>
</tr>
<tr>
<td style="border:solid 0px black; border-bottom:0;"><!-- TemplateBeginEditable name="大框标题广告" -->
<!-- #BeginLibraryItem "/library/ad_position.lbi" -->

{insert name='ads' id=$ads_id num=$ads_num}
<div class="blank"></div>
<!-- #EndLibraryItem -->
<!-- TemplateEndEditable -->
</td>
<td style="border:solid 0px black; border-bottom:0;"><!-- TemplateBeginEditable name="大框文章调用" -->
<div align="left"><!-- #BeginLibraryItem "/library/cat_articles.lbi" -->

<div class="box">
<div class="box_1">
<h3>
<span><a href="{$articles_cat.url}">{$articles_cat.name|escape:html}</a></span>
<a href="{$articles_cat.url}"><img src="../images/more.gif" alt="more" /></a></h3>
<div class="boxCenterList RelaArticle">
<!--{foreach from=$articles item=article_item}-->
<a href="{$article_item.url}" title="{$article_item.title|escape:html}">{$article_item.short_title}</a> {$article_item.add_time}<br />
<!--{/foreach}-->
</div>
</div>
</div>
<div class="blank5"></div>

<!-- #EndLibraryItem -->
</div>
<!-- TemplateEndEditable -->
</td>
<td valign="top" bordercolor="0" style="border:solid 0px black;border-bottom:0;"><!-- TemplateBeginEditable name="大框小广告下" -->
<!-- #BeginLibraryItem "/library/ad_position.lbi" -->

{insert name='ads' id=$ads_id num=$ads_num}
<div class="blank"></div>
<!-- #EndLibraryItem -->
<!-- TemplateEndEditable -->
</td>
</tr>
</table>

11111.png