0

我想知道电子​​邮件 HTML 中的图像裁剪是否有任何限制。我已经尝试设置widthheight属性,但没有奏效。我也试过了Clip property,但也没有用。

这两种情况下的图像都会一直显示它的全部内容。

4

2 回答 2

3

由于 HTML 呈现的变化,每个电子邮件客户端都会以不同的方式呈现它。您需要将 HTML 电子邮件视为没有 CSS 并使用基本 HTML。

最好的选择是使用图像编辑器手动裁剪图像。

高级 CSS 不是值得信赖的途径,应避免使用以确保跨平台/浏览器/客户端的稳定性。

于 2012-10-19T04:09:58.487 回答
1

You should be more concerned if you are supporting from Microsoft Outlook 2007 which doesn't offer support for CSS. It renders based on Microsoft Office rendering engine due to security issues which is lame enough to understand even CSS2 tags. So I would also go with the above comment to manually crop the image using an image editor.

Tip:

For Email testing I have used http://www.emailonacid.com/ even though it is paid version it does the email testing easier.

于 2012-10-19T09:36:30.813 回答