SVG
一、SVG简介1.使用XML描述的矢量文件2.W3C标准(https://www.w3.org/TR/SVG11/)3.浏览器支持情况(https://caniuse.com/#cats=SVG)二、基本图形和属性1.基本图形、、、、、2.基本属性fill、stroke、stroke-width、transform(1) 矩形
x
y
width
height
rx<可以定义圆角矩形>
ry(2) 圆
cx<圆心的位子>
cy
r<圆的半径>(3) 椭圆
cx
cy
rx
ry<4> 直线
x1
y1
x2
y2<5> 折线
points 格式(xi,yi)+<6> 多边形
points 格式(xi,yi)+
3.填充、描边和变换
fill fill=#ffb3ae
stroke stroke = 971817
stroke-width strokeWidth = 10
transform transform=”rotate(30)”
4.基本操作API
创建图形 document.createEleme
2018-09-15
Javascript
Javascript