Position 屬性 (Fill) (VML)
本主題描述 VML,這是從 internet Explorer 9 Windows淘汰的功能。 依賴 VML 的網頁和應用程式應移轉至 SVG 或其他廣泛支援的標準。
注意
自 2011 年 12 月起,本主題已封存。 因此,它不再主動維護。 如需詳細資訊,請參閱 封存內容。 如需目前版本的 Windows Internet Explorer 相關資訊、建議和指引,請參閱Internet Explorer 開發人員中心。
定義填滿影像的位置。 讀取/寫入 VgVector2D 。
適用於
標記語法
<v: element position=「 expression 」>
指令碼語法
element .position=「expression」
表達=element.position
備註
指定圖形中要放置影像原點的點。 預設值是容器矩形的中心。 向量是影像寬度和高度的分數。
VML 標準屬性
範例
填滿的影像會向右移位到圖形寬度的 50% 點。
<v:shape id="rect01"
coordorigin="0 0" coordsize="200 200"
strokecolor="red"
style="top:1;left:1;width:50;height:50"
path="m 1,1 l 1,200, 200,200, 200,1 x e">
<v:fill type="pattern" position="0.5,0" src="myimage.gif"/>
</v:shape>