日期:2014-05-17  浏览次数:20659 次

html中svg标签的简单实用
请看例子

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>

<body>
	
	<svg width="100%" height="100%" >
		<path fill="none" stroke="#426ab3" stroke-linecap="butt" stroke-width="6" stroke-linejoin="round" stroke-opacity="1" transform="matrix(1,0,0,1,0,0)" d="M250 150 L150 350 L350 350 Z" />
		<circle r="5" cx="250" cy="150" fill="#426ab3"/>
		<text style="font-size:15" x="220" y="300">I like svg</text>
	</svg>
</body>
</html>