try to draw 1000*1000 svg grig
This commit is contained in:
parent
0577612b2d
commit
b6c95f7979
|
@ -8,7 +8,7 @@ function createElem(type,attributes){
|
|||
|
||||
|
||||
function tron(bot1,bot2,xdcheck){
|
||||
var mapImg = createElem('svg',{'alt' : 'map','width':'200px','height':'200px','xmlns':'http://www.w3.org/2000/svg'});
|
||||
var mapImg = createElem('svg',{'alt' : 'map','width':'200','height':'200','xmlns':'http://www.w3.org/2000/svg','viewBox':'0 0 20 20'});
|
||||
// "circle" may be any tag name
|
||||
mapImg.innerHTML = ' <rect id="rect1" x="10" y="10" width="50" height="80" style="stroke:#000000; fill:none;"/>';
|
||||
document.getElementById('mainArticle').appendChild(mapImg);
|
||||
|
|
Loading…
Reference in New Issue
Block a user