用JS修改样式

 

说的是同一个事情

http://www.cnblogs.com/jetz/archive/2009/04/16/1436869.html

 

<script type="text/javascript"> 
    document.write("<DIV class=[*Key*] style=\"height:"); 
    var w=[*Height*]-15; 
    document.write(w); 
    document.write("px;\">"); 
</script>

 

用来替代

 <div class=[*Key*]>

 

将其高度设置为[*Height*]-15

posted @ 2009-12-30 20:34  jetz  阅读(250)  评论(0编辑  收藏  举报