VML FitPath 属性

本主题介绍 VML,这是一项从 Windows Internet Explorer 9 开始弃用的功能。 依赖于 VML 的网页和应用程序应迁移到 SVG 或其他广泛支持的标准。

注意

截至 2011 年 12 月,本主题已存档。 因此,它不再主动维护。 有关详细信息,请参阅 存档内容。 有关 Windows Internet Explorer 当前版本的信息、建议和指南,请参阅 Internet Explorer 开发人员中心

 

定义文本是否适合形状的路径。 读/写。 VgTriState

适用于

TextPath

标记语法

<v: element fitpath=“ expression ”>

脚本语法

element .fitpath=“expression

表达=element.fitpath

备注

如果 为 True,则调整文本大小以填充它所在的路径。 默认值为 False

VML 标准属性

示例

文本将适合路径。

   <v:line from="50 100" to="400 100">
   <v:fill on="True" color="red"/>
   <v:path textpathok="True"/>
   <v:textpath on="True" string="VML Text" fitpath="True"
   style="font:normal normal normal 36pt Arial"/>
   </v:line>