怎么画一条直线?
怎么画一条直线?
我把<v:line strokeweight="2px" strokecolor="red" from="0px,0px" to="100px,100px"></v:line>
放到body中能显示出一条直线,但是想动态添加document.body.insertAdjacentHTML"<v:line strokeweight="2px" strokecolor="red" from="0px,0px" to="100px,100px"></v:line>");就不行
我也加了<HTML xmlns:v="urn:schemas-microsoft-com:vml" xmlns="http://www.w3.org/TR/REC-html40">和<style>v\:* { behavior: url(#default#VML);}</style>
为什么说缺少对象?