码迷,mamicode.com
首页 > 其他好文 > 详细

SVG六基本元素

时间:2015-07-17 20:52:04      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>svg 6 elements</title>
</head>
<body>
    <h1>Hello SVG 6 Elements</h1>
     
        <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"  >
    <rect x="20" y="20" width="50" height="30" rx="5" ry=‘10‘></rect>
    <circle cx="100" cy="20" r="10"></circle>
    <ellipse cx="150" cy="20" rx="10" ry="5"></ellipse>
    <line x1="100" y1="100" x2="110" y2="90" style=‘stroke:rgb(99,99,99);stroke-width:2‘></line>
    <polygon points="100,100 150,150 139,123" style="fill:#cccccc; stroke:#000000;stroke-width:1"/>
    <polyline points="0,0 0,20 20,20 20,40 40,40 40,60" style="fill:white;stroke:red;stroke-width:2"/>

</svg>
     
</body>
</html>

 

SVG六基本元素

标签:

原文地址:http://www.cnblogs.com/stono/p/4655572.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!