Share via


VML StrokeWeight 屬性

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

注意

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

 

定義筆刷粗細,以筆劃圖形的路徑。 讀取/寫入 VGLength

適用於

圖形

標籤語法

<v: 元素 strokeweight=「 運算式 」>

指令碼語法

元素 .strokeweight=「expression

表達=element.strokeweight

備註

此值會從Stroke專案的Weight屬性複製。 如果指定數位,但未新增任何單位,則預設度量單位為 Emu。 如果未指定任何值,則預設值為 1 圖元, (1px) 。

不過,針對腳本,預設度量單位是以點為單位。

VML 標準屬性

另請參閱

筆劃IVgLength單位

範例

圖形的筆劃粗細為 1 點。

   <v:shape id="rect01" strokeweight="1pt"
   strokecolor="red" fillcolor="white"
   coordorigin="0 0" coordsize="200 200"
   style="position:relative;top:1;left:1;width:20;height:20"
   path="m 1,1 l 1,200, 200,200, 200,1 x e">
   </v:shape>

StrokeWeight 屬性範例。 (需要 Microsoft Internet Explorer 5 或更新版本.)