效果图

SVG图片:Idiot.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="145" r="20" 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="145" r="20" stroke="black"
stroke-width="1pt" fill="black" />
<path d="m 110,50 80,65" stroke="black" stroke-width="10pt" />
<path d="m 290,50 -80,65" stroke="black" stroke-width="10pt" />
<path d="m 200,220 0,50" stroke="black" stroke-width="10pt" />
<polygon points="200,300 180,330 220,330" stroke="black"
stroke-width="5pt" fill="red" />
</g>
</svg>
<!---->
调用页面:Idiot.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>An Idiot in SVG</title>
</head>
<body align="center">
<h1>An Idiot in SVG</h1>
<iframe src="Idiot.svg" width="400" height="400" />
</body>
</html>
END
366

被折叠的 条评论
为什么被折叠?



