请找到以下 VML 元素
<v:shape id=container_vml_CrosshairVertical style="HEIGHT: 1000px; POSITION: absolute; LEFT: 0px; TOP: 0px; VISIBILITY: visible; WIDTH: 1000px" coordsize = "1000,1000" fillcolor = "white" strokecolor = "black" strokeweight = "1pt" path = " m513,58 l513,374 e"></v:shape>
当我使用以下代码设置属性时,我将通过 path="M 426 58 L 426 374" 更改路径属性值
var val="M 426 58 L 426 374"
$element.attr('path', val);
它再次在该元素中创建新属性。执行后请参考以下代码。
<v:shape id=container_vml_CrosshairVertical style="HEIGHT: 1000px; POSITION: absolute; LEFT: 0px; TOP: 0px; VISIBILITY: visible; WIDTH: 1000px" path="M 426 58 L 426 374" coordsize = "1000,1000" fillcolor = "white" strokecolor = "black" strokeweight = "1pt" path = " m513,58 l513,374 e"></v:shape>
我无法得到它再次创建新属性的确切原因?
谢谢,
湿婆