标签:
<svg version="1.1" baseProfile="full" width="300" height="200"> <rect x="20" y="20" rx="5" ry="5" width="100" height="100" fill="teal" /> </svg>
x:
定义矩形左上角的点的x
坐标<svg version="1.1" baseProfile="full" width="300" height="200"> <circle cx="150" cy="100" r="50" fill="blue" /> </svg>
<svg version="1.1" baseProfile="full" width="300" height="200"> <ellipse cx="150" cy="100" rx="50" ry="100" fill="blue" /> </svg>
<svg version="1.1" baseProfile="full" width="300" height="200"> <line x1="100" y1="200" x2="250" y2="50" stroke="#000" stroke-width="5" /> </svg>
<svg version="1.1" baseProfile="full" width="300" height="200"> <polyline points="10 10, 50 50, 75 175, 175 150, 175 50, 225 75, 225 150, 300 150" fill="none" stroke="#000"/> </svg>
<svg version="1.1" baseProfile="full" width="300" height="200"> <polygon points="10 10, 50 50, 75 175, 175 150, 175 50, 225 75, 225 150, 300 150" fill="#000"/> </svg>
1、points:多边形各个点坐标
标签:
原文地址:http://www.cnblogs.com/tyxloveyfq/p/4595735.html