javascript - Why fill() property overwittern in canvas? -
I learn the html5 canvas when I try to draw 2 circles (a circle inside a circle). When I draw a circle and fill it, then it works when I attract the other circle and fill it, it turns into the first circle with the second type of style. I try to make orange circle in a gray circle. I try it many times to solve it but by all means it gets the problem. Please check my code and tell me whether I am wrong or what to fix this problem To do. > I have the following code & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Script src = "http://code.jquery.com/jquery-latest.min.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Style & gt; Body {} #mycanvas {boundary: 1 px solid # 000; Margin: 0 px auto; Display area; } # Mycanvas1 {boundary: 1px solid # 000; Margin: 0 px auto; Display area; } & Lt; / Style & gt; & lt; Body & gt; & Lt; Canvas id = "mycanvas...