0

I want to create simple VML circle element through jquery. i have done this in SVG via jquery.

how can i create this VML circle element and need to attach this to some other container like "div"

sample VML code:

<html xmlns:v="urn:schemas-microsoft-com:vml"> 
<head> 
<style> v\:* { behavior: url(#default#VML); }</style > 
</head> 
<body> 
<v:rect  
style="width:50;  
height:50" 
fillcolor="green" 
strokecolor="black"/> 
</body> 
</html> 

This will create the rectangle with green color.

i want to create this dynamically via jquery ?

Thanks,

Siva

4

1 回答 1

0

那么,你为什么不把标记放在一个选择器中,然后将它附加到正文中呢?

$('<v:rect style="width:50; height:50" fillcolor="green" strokecolor="black"/>').appendTo('body')

或者将其附加到您选择的任何容器中,即。

于 2013-08-07T09:22:32.737 回答