SVG矢量图像:微笑

效果图

220343_IKrE_1425762.png

SVG图片:Happy.svg

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/SVG/DTD/svg10.dtd">
<svg viewBox="0 0 400 400" width="100%" height="100%" 
    xmlns="http://www.w3.org/2000/svg">
    <title>IdiotInSvg</title>
    <defs>
        <radialGradient id="tsybius">
            <stop offset="0%" stop-color="black" />
            <stop offset="100%" stop-color="lawngreen" />
        </radialGradient>
    </defs>
    <g id="mainlayer">   
        <rect x="0" y="0" width="400" height="400" fill="lawngreen" />
        <rect x="0" y="40" width="400" height="400" fill="url(#tsybius)" />
        <circle cx="200" cy="200" r="175" stroke="black" 
            stroke-width="1pt" fill="yellow" />
        <circle cx="130" cy="145" r="60" stroke="black" 
            stroke-width="1pt" fill="white" />
        <circle cx="130" cy="170" r="35" stroke="black" 
            stroke-width="1pt" fill="black" />
        <circle cx="270" cy="145" r="60" stroke="black" 
            stroke-width="1pt" fill="white" />
        <circle cx="270" cy="170" r="35" stroke="black" 
            stroke-width="1pt" fill="black" />
        <path 
            d="M 100,250 C 160,320 240,320 300,250" 
            style="fill:none;stroke:#000000;stroke-width:5pt" />
    </g>
</svg>
<!---->

调用页面:Template.htm

<!DOCTYPE html PUBLIC "-//W3C//DTDXHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>SMILING FACE 2014/11/15</title>
    </head>
    <body align="center">
        <h1>SMILING FACE</h1>
        <iframe src="Happy.svg" width="400" height="400" />
    </body>
</html>

END

转载于:https://my.oschina.net/Tsybius2014/blog/345144

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值