Color2 屬性 (筆劃) (VML)

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

注意

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

 

定義筆劃的第二個色彩。 讀取/寫入 字串

適用於

中風

標籤語法

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

指令碼語法

元素 .color2=「expression

表達=element.color2

備註

當筆劃的填滿類型為圖樣時,會使用第二個色彩。

VML 標準屬性

範例

圖形的筆劃是圖樣填滿,其中填滿是由來源影像所定義,但透明背景是由第二個色彩所定義。

   <v:shape id="rect01"
   strokecolor="red" fillcolor="red"
   style="top:20;left:20;width:30;height:30"
   path="m 1,1 l 1,200, 200,200, 200,1 x e">
   <v:stroke filltype="pattern" width="5pt" src="cylinder.gif" color2="green"/>
   </v:shape>