为什么我们仍然需要电子邮件模板的 VML 标签?
Why do we still need VML tags for email templates?
为什么我们仍然需要电子邮件模板的 VML 标签?特别是在 outlook 中。
这是使用 outlook 邮件正文生成的示例部分。
如果我删除这些 vml 标签会怎样?
<!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_2" o:spid="_x0000_i1025" type="#_x0000_t75"
style='width:168.75pt;height:168.75pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="template_files/image001.png" o:title=""/>
Outlook 使用 Word 作为电子邮件编辑器,而 Word 使用 VML。
根据代码我假设有一个圆圈,里面有一个图像?
如果删除它,由 VML 创建的带有颜色的圆圈将不再在 Outlook 中呈现(特别是 2007 及更高版本)。
Vector Markup Language (VML) was an XML-based file format for
two-dimensional vector graphics.
VML was specified in Part 4 of the Office Open XML standards ISO/IEC
29500 and ECMA-376. According to the specification, VML is a
deprecated format included in Office Open XML for legacy reasons
only.1[2]
VML was pervasively used in MS Office 2007 documents (i.e. Word, Excel
and PowerPoint documents).1[3][4]
As of 2012, with the release of Internet Explorer 10, VML became
obsolete and is no longer supported by Internet Explorer standard
mode.[5] It is a legacy feature that is available in Internet Explorer
10 only when the browser is set to run in modes that emulate the
functionality of previous versions of Internet Explorer 6, 7, 8, and
9.
Source: Wikipedia
没有 VML,无法在 Outlook 2007 及更高版本中放置背景图像。
为什么我们仍然需要电子邮件模板的 VML 标签?特别是在 outlook 中。
这是使用 outlook 邮件正文生成的示例部分。
如果我删除这些 vml 标签会怎样?
<!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_2" o:spid="_x0000_i1025" type="#_x0000_t75"
style='width:168.75pt;height:168.75pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="template_files/image001.png" o:title=""/>
Outlook 使用 Word 作为电子邮件编辑器,而 Word 使用 VML。
根据代码我假设有一个圆圈,里面有一个图像?
如果删除它,由 VML 创建的带有颜色的圆圈将不再在 Outlook 中呈现(特别是 2007 及更高版本)。
Vector Markup Language (VML) was an XML-based file format for two-dimensional vector graphics.
VML was specified in Part 4 of the Office Open XML standards ISO/IEC 29500 and ECMA-376. According to the specification, VML is a deprecated format included in Office Open XML for legacy reasons only.1[2]
VML was pervasively used in MS Office 2007 documents (i.e. Word, Excel and PowerPoint documents).1[3][4]
As of 2012, with the release of Internet Explorer 10, VML became obsolete and is no longer supported by Internet Explorer standard mode.[5] It is a legacy feature that is available in Internet Explorer 10 only when the browser is set to run in modes that emulate the functionality of previous versions of Internet Explorer 6, 7, 8, and 9. Source: Wikipedia
没有 VML,无法在 Outlook 2007 及更高版本中放置背景图像。