For faster navigation, this Iframe is preloading the Wikiwand page for 矢量标记语言.

矢量标记语言

向量標記式語言
扩展名
.htm.html
互联网媒体类型
application/vnd.openxmlformats-officedocument.vmlDrawing
开发者Microsoft
格式类型矢量图形格式
扩展自XML
标准Part of ECMA-376及ISO/IEC 29500:2008
网站ECMA-376, ISO/IEC 29500-4:2012

向量標記式語言(英語:Vector Markup Language,縮寫VML)是用於繪製矢量图形XML語言。1998年VML建議書由微軟、Macromedia等向W3C提出審核。VML遭到拒絕,因為AdobeSun等提出了PGML[1]页面存档备份,存于互联网档案馆)計劃書。這兩套標準後來合併成更具潛力的SVG

儘管VML規格一度遭到W3C的拒絕,並為大多數使用者所遺棄。微軟(Microsoft)依然將VML的標準規格實作到Internet Explorer 5.0及更新的版本,Microsoft Office 2000以上的版本亦有支援。

Google Maps目前在Internet Explorer 5.5+[2]页面存档备份,存于互联网档案馆)上採用VML來描寫向量(rendering vector)。

Google Docs目前在相同平台上[3]页面存档备份,存于互联网档案馆)采用VML来绘制矢量图。 Template:Step

範例

下列的程式碼會顯示出一個塗滿蓝色的橢圓形:

<html xmlns:v>
 <style>v\:*{behavior:url(#default#VML);position:absolute}</style>
<body>
 <v:oval style="left:0;top:0;width:100;height:50" fillcolor="blue" stroked="f"/>
</body>
</html

SVG更精簡的程式碼可達成上述的相同結果:

<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="50">
  <ellipse cx="50" cy="25" rx="50" ry="25" fill="blue" stroke="none" />
</svg>

参考文献

外部連結

参见

{{bottomLinkPreText}} {{bottomLinkText}}
矢量标记语言
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?