在一个网页里看到类似如下代码:var le = document .createElement( "<v:line></v:line>" );
le.from = 10 + ',' + 10 ;
le.to = 550 + ',' + 550 ;
le.strokecolor= "red" ;
le.strokeweight= "3pt" ;
document.body.insertAdjacentElement('BeforeEnd',le);
return o;想问一下大家,如果有其他属性该怎么办?
比如
[code=XAML]
<v:RoundRect style="position:relative;width:120;height:50px">
<v:shadow on="T" type="single" color="#b3b3b3" offset="5px,5px"/>
<v:TextBox inset="5pt,5pt,5pt,5pt" style="font-size:10.2pt;">Hello world!</v:TextBox>
</v:RoundRect>
[/code]
用上面那种方法操作的 话 该怎么写?
le.from = 10 + ',' + 10 ;
le.to = 550 + ',' + 550 ;
le.strokecolor= "red" ;
le.strokeweight= "3pt" ;
document.body.insertAdjacentElement('BeforeEnd',le);
return o;想问一下大家,如果有其他属性该怎么办?
比如
[code=XAML]
<v:RoundRect style="position:relative;width:120;height:50px">
<v:shadow on="T" type="single" color="#b3b3b3" offset="5px,5px"/>
<v:TextBox inset="5pt,5pt,5pt,5pt" style="font-size:10.2pt;">Hello world!</v:TextBox>
</v:RoundRect>
[/code]
用上面那种方法操作的 话 该怎么写?
解决方案 »
- asp.net正则如何过滤Javascript和Javascript里面的内容
- 两个div的问题。请教
- 跨frame的弹出层
- 关于document.body.scrollLeft的IE7兼容问题
- css 文件加载不进的问题。
- 这个网站的效果是怎么做的,用的是什么语言啊?
- 如何实现访问一个页面的同时,不打开该访问的页面(天外水火请进,UP者有分)
- office2007 automation 服务器不能创建对象
- 请教一个关于字体的问题
- [接]公开我今天的劳动,希望对大家有用。。 http://lostinet.d2g.com/temp/public/Library/JScript.txt
- js调用问题?急
- onsumit=“return ckeck()&& checkform()"
o.style.position='relative';
o.from='0,0';
o.to='500,500';
o.strokecolor='red';
o.strokeweight=9;
var s=document.createElement('v:stroke');
s.dashstyle='LongDashDot';
s.endarrow='classic';
o.appendChild(s);
document.body.insertAdjacentElement('BeforeEnd',o);