SVG
<?xml version="1.0" standalone="no"?>
<svg width="100%" height="100%" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<!-- 滤镜-->
<defs>
<filter id="Gaussian_Blur">
<feGaussianBlur in="SourceGraphic" stdDeviation="2" />
</filter>
</defs>
<!--线性渐变-->
<defs>
<linearGradient id="orange_red" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:rgb(255,255,0);
stop-opacity:1"/>
<stop offset="100%" style="stop-color:rgb(255,0,0);
stop-opacity:1"/>
</linearGradient>
</defs>
<ellipse cx="200" cy="190" rx="85" ry="55"
style="fill:url(#orange_red)"/>
<!--放射渐变-->
<defs>
<radialGradient id="grey_blue" cx="50%" cy="50%" r="50%"
fx="50%" fy="50%">
<stop offset="0%" style="stop-color:rgb(200,200,200);
stop-opacity:0"/>
<stop offset="100%" style="stop-color:rgb(0,0,255);
stop-opacity:1"/>
</radialGradient>
</defs>
<ellipse cx="130" cy="500" rx="110" ry="70"
style="fill:url(#grey_blue)"/>
<circle cx="100" cy="50" r="40" stroke="#aaaaaa"
stroke-width="2" fill="#00eeee"
style='filter:url(#Gaussian_Blur)'/>
<a href="http://www.baidu.com" >
<rect width="100" height="100"
x='50'
y='600'
rx='20'
ry='20'
style="fill-opacity:0.5;fill:rgb(0,255,0);stroke-width:1;stroke:rgba(0,0,0,0.5)"/>
</a>
<ellipse cx="120" cy="260" rx="100" ry="45"
style="fill:rgb(200,100,50);
stroke:rgba(0,0,0,0.5);stroke-width:2"/>
<line x1="0" y1="0" x2="290" y2="100"
style="stroke:rgb(99,99,99);stroke-width:1;"/>
<polygon points="220,100 300,210 180,290 170,250 "
style="fill:#cccccc;stroke:#000000;stroke-width:1"/>
<polyline points="100,100 100,120 120,120 120,140 140,140 140,160"
style="fill:white;stroke:red;stroke-width:2"/>
<path d="M153 334
C153 334 151 334 151 334
C151 339 153 344 156 344
C164 344 171 339 171 334
C171 322 164 314 156 314
C142 314 131 322 131 334
C131 350 142 364 156 364
C175 364 191 350 191 334
C191 311 175 294 156 294
C131 294 111 311 111 334
C111 361 131 384 156 384
C186 384 211 361 211 334
C211 300 186 274 156 274"
style="fill:white;stroke:red;stroke-width:2"/>
</svg>
canvas
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<canvas id="myCanvas"></canvas>
<script type="text/javascript">
var canvas = document.getElementById('myCanvas');
var ctx = canvas.getContext('2d');
ctx.fillStyle = '#eeeeee';
ctx.fillRect(10, 10, 100, 100);
ctx.moveTo(10, 10);
ctx.lineTo(110, 50);
ctx.lineTo(10, 50);
ctx.stroke();
ctx.save();
ctx.moveTo(10, 120);
ctx.fillStyle = '#ff0000';
ctx.fillRect(10, 120, 100, 100);
ctx.lineTo(20, 150);
ctx.stroke();
ctx.save();
</script>
<script type="text/javascript">
</script>
</body>
</html>