共用方式為


VML Font-Size 屬性

本主題描述 VML,這是在 Windows Internet Explorer 9 中已被取代的功能。 依賴 VML 的網頁和應用程式應該移轉至 SVG 或其他廣泛支援的標準。

注意

自 2011 年 12 月起,本主題已封存。 因此,它不再主動維護。 如需詳細資訊,請參閱 封存內容。 如需有關目前 Windows Internet Explorer 版本的資訊、建議和指引,請參閱 Internet Explorer 開發人員中心

 

定義字型的大小。 讀取/寫入 字串

適用於

TextPath

標籤語法

<v: 元素 樣式=「font-size: expression 」>

指令碼語法

元素 .style.fontsize=「expression

表達=element.style.fontsize

備註

字型大小是以點為單位定義。 這些值與標準 HTML 樣式屬性相同。

VML 標準屬性

範例

字型大小為 36 點。

   <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"
   style="font:normal normal normal 36pt Arial"/>
   </v:line>