Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
vml使用javascript将行添加到v:group中_Javascript_Internet Explorer 7_Element_Vml - Fatal编程技术网

vml使用javascript将行添加到v:group中

vml使用javascript将行添加到v:group中,javascript,internet-explorer-7,element,vml,Javascript,Internet Explorer 7,Element,Vml,我需要一些帮助来使用Javascript将vml line元素绘制成vml group元素,该元素在HTML代码中定义 My v:group元素,它有其他vml元素,如v:arc或v:rect…: <div style="width: 940px; height: 490px; margin-bottom: 60px; position: relative; top: -440px; left: 20px;"> <v:group ID="vmlgruppe" sty

我需要一些帮助来使用Javascript将vml line元素绘制成vml group元素,该元素在HTML代码中定义

My v:group元素,它有其他vml元素,如v:arc或v:rect…:

   <div style="width: 940px; height: 490px; margin-bottom: 60px; position: relative; top: -440px; left: 20px;">
   <v:group ID="vmlgruppe" style="width:940px; height: 470px; clip:hidden;      position:relative;" coordsize="210, 105" xmlns:v="urn:schemas-microsoft-com:vml">
如果我在不使用Javascript的情况下绘制一个line元素,效果会很好。 但是如果我使用Javascript绘制相同的line元素,则该元素的位置不同。臭虫在哪里?有人能帮我吗。 谢谢

我解决了这个问题

我在v:groupa中使用了一个ID为的v:line元素

<v:line id="progression-0" from="-10, -10" to="-10, -10"></v:line>
<v:line id="progression-0" from="-10, -10" to="-10, -10"></v:line>
var line = document.getElementById("progression-0");
line.from = x + "," + y ;
line.to = x2 + "," + y2;
line.strokeweight = 4+"px";
line.style.opacity = 0.3;