不同浏览器对于空白的处理

<div>
    <img src="${imagebase }/album_type_box_bg_top.gif" width="142" height="2" />
</div>
<div class="album_type_box_1">
    <table class="album_type_box_table_1" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td>
            <a href="${base }/group/${path }/viewArticle/?id=${art.id }">
                <img onload="javascript:resizeImage(this,140,120)" src="${base }/attachments/${imageAttachList[status.count-1].url}" width="130px" />
            </a>
            </td>
        </tr>
    </table>
</div>
<div>
    <img src="${imagebase }/album_type_box_bg_bottom.gif" width="142" height="2" />
</div>

以上这段代码,是想实现下面的图片效果,结果圆角矩形在ie下总是有问题,在ff下确实正常,后来发现原来是

<div>
    <img src="${imagebase }/album_type_box_bg_top.gif" width="142" height="2" />
</div>这段代码中有换行的空白,ie显示了这部分空白,所以圆角矩形无法闭合。改为下面这样就可以了

<div><img src="${imagebase }/album_type_box_bg_top.gif" width="142" height="2" /></div>

 

问题虽小,却废了好大神经找出来,先记下了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值