特点:矢量图
用途:浏览器直接打开,直接子html内使用svg标签,在html中使用img标签引用,作为css背景。
可以使用svg绘制的基本图形及对应的属性:
图形:<rect><circle><ellipse><line><polyline><polygon>
基本属性:stroke fill stroke-width transform
-
<rect>
-
<circle>
-
<ellipse>
-
<line>
-
<polyline>
-
<polygon>
-
属性
-
基本api
- 例子:
<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">
//…………
</svg>