本主题介绍 VML,此功能已弃用到 Windows Internet Explorer 9。 依赖 VML 的网页和应用程序应迁移到 SVG 或其他广受支持的标准。
注意
截至 2011 年 12 月,本主题已存档。 因此,它不再积极维护。 有关详细信息,请参阅 存档内容。 有关当前版本的 Windows Internet Explorer 的信息、建议和指南,请参阅 Internet Explorer 开发人员中心。
示例:
若要将文本附加到矩形,可以在网页区域中键入以下行 <BODY> :
<body>
<v:rect style='width:120pt;height:80pt;' fillcolor="red">
<v:textbox>
I'm attaching some text to this shape!!!
</v:textbox>
</v:rect>
</body>
若要将超链接附加到渐变填充的圆角矩形,可以在网页区域中键入以下行 <BODY> :
<body>
<v:roundrect style='width:80pt;height:30pt;' fillcolor="red">
<v:fill type="gradient" />
<v:textbox>
<a href="https://home.microsoft.com/"> Click here</a>
</v:textbox>
</v:roundrect>
</body>
有关此元素的详细信息,请参阅 VML 规范 。