BlogJava-豆沙包-最新评论http://www.blogjava.net/carob/CommentsRSS.aspx…… …… 所学 所写 所想 所做 所悟…… …… zh-cnSun, 20 Aug 2006 14:30:00 GMTSun, 20 Aug 2006 14:30:00 GMTcnblogsre: SVG 嵌入 HTML页面的几种方式http://www.blogjava.net/carob/archive/2009/05/07/64450.html#269391bigchbigchThu, 07 May 2009 04:49:00 GMThttp://www.blogjava.net/carob/archive/2009/05/07/64450.html#269391<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg">" target="_new" rel="nofollow">http://www.w3.org/2000/svg">
<head>
<title>SVG within XHTML Demo</title>
</head>
<body>

<p> You can embed SVG into XHTML, provided that your browser natively implements
SVG. E.g. Firefox 1.5 supports most of static SVG.
</p>

The SVG part starts below <hr />

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="400" height="300">
<!-- un petit rectangle avec des coins arroundis -->
<rect x="50" y="50" rx="5" ry="5" width="300" height="100" style="fill:#CCCCFF;stroke:#000099"/>
<!-- un texte au meme endroit -->
<text x="55" y="90" style="stroke:#000099;fill:#000099;font-size:24;">
HELLO cher visiteur
</text>
</svg>

<hr />
The SVG part ended above
</body>
</html>



bigch 2009-05-07 12:49 发表评论
]]>