表格样式边框-Outlook 2010增加了额外的空间 [英] Table style border- outlook 2010 adds an extra space

查看:265
本文介绍了表格样式边框-Outlook 2010增加了额外的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个用于电子邮件营销的HTML.我放了一张桌子,并在它周围加上了边框:

<table border="0" cellspacing="0" cellpadding="0" style="border:1px solid #982676; margin:0 16px;">

由于某种原因,当我在OUTLOOK 2010中进行测试时,我在其中得到了1个像素的额外空白.我在围绕顶部和左侧对齐的图像周围看到它,而在具有实线的其他单元周围看到它背景颜色.

通过以下链接查看图片:屏幕截图

最上面的三角形本身就是一个单元格中的图像.底部矩形是具有背景颜色的单元格.这些是坚持边界的.这是一个反复出现的问题.有人遇到过这个问题吗?

解决方案

广告系列监控器对于如何解决此类问题提供了非常好的解决方案.只需将此 style 代码添加到表格元素中即可.下面的代码解决了我在Outlook 2010上的问题(与OP相同)

<table align="left" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"> ... </table>

http://www .campaignmonitor.com/blog/post/3694/removing-spacing-from-around-tables-in-outlook-2007-and-2010

如果这不起作用,请尝试此操作. http://www.emailonacid.com/blog/details/C13/removing_unwanted_spacing_table_out_ga__2007_

I created an HTML for email marketing. I placed a table, and applied a border around it:

<table border="0" cellspacing="0" cellpadding="0" style="border:1px solid #982676; margin:0 16px;">

For some reason I am getting 1 pixel extra white space inside when I test it in OUTLOOK 2010. I see it around images that are aligned to the top and to the left, and I see it around other cells that have a solid background color.

See image at this link:screenshot

The top triangle is an image in a cell by itself. The bottom rectangle is a cell with a background color. These were supposes to stick to the border. This is a recurring problem. Has anyone encountered this issue before?

解决方案

Campaign monitor has a really great solution on how to solve this type of problem. Simple add this style code to your table elements. The code below solved my problem (same as OP) on Outlook 2010

<table align="left" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"> ... </table>

http://www.campaignmonitor.com/blog/post/3694/removing-spacing-from-around-tables-in-outlook-2007-and-2010

If that doesn't work, try this. http://www.emailonacid.com/blog/details/C13/removing_unwanted_spacing_or_gaps_between_tables_in_outlook_2007_2010

这篇关于表格样式边框-Outlook 2010增加了额外的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆