1<! DOCTYPE html>234<title>insert you title</title>5<meta name= ' description ' content= ' This is my page ' >6<meta name= ' keywords ' content= ' keyword1,keyword2,keyword3 ' >7<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">8<link rel= ' stylesheet ' type= ' text/css ' href= './css/index.css '/>9<script type= ' text/javascript ' src= './js/jquery-1.12.1.min.js ' ></script>Ten<style type= ' text/css ' > One Html,body,div,svg { Amargin:0; padding:0; - } - the #wrap { -width:500px; height:450px; border:1px solid #999; border-radius:2px; margin:25px auto; - } - + svg { -height:100%; width:100%; + /*in Google Chrome, if you do not specify the size of SVG, use the default 300*150 size (you can check the focus on the label in the console {Element}), but the performance is different in Firefox A even if we do not specify the size of the SVG and specify the size of the parent element, the size of the SVG inherits the parent element; at */ - } -</style> -<script type= ' Text/javascript ' > -$(function(){ - in } ); -</script> to +<body> -<div id= ' wrap ' > the<svg xmlns= ' http://www.w3.org/2000/svg ' version= ' 1.1 ' > *<!-- $ how to introduce in HTML files:Panax NotoginsengParameter parsing: xmlns (xml nameSpace is translated as XML document namespace) address: http://Www.w3.org/2000/svg The version number of the XML, bit 1.1, the default "canvas" Size 300*150 - in SVG and canvas canvas is different, CANVASREADING2D provides a lot of properties and methods, but in SVG we only need to use the label to achieve basic graphics, if you want to achieve advanced graphics effect or to combine JS the- +<circle cx= ' cy= ' 225 ' r= ' "fill= ' #09F3C7 ' stroke= ' #C7F309 ' stroke-width = ' 3 ' ></circle> A<!--parameter resolution CX CY Center coordinate r radius default fill form Fill Color black if you want to set to transparent (none/transparent) Although none is the same as the transparent effect but the mechanism is completely different none is not populated Transparen T is transparent, outlines the stroke as no style = "fill: #09F3C7; stroke: #C7F309;"- the</svg> +</div> -</body> $
[JavaScript svg fill Stroke stroke-width Circle Property explains] svg fill stroke stroke-width Circle Property Draw circle and introduce the way to explain