CSS动态表达式

样式:style:expression(脚本)

 如:

 1 _top: expression(this.offsetHeight);

 1 _top: expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||200)-(parseInt(this.currentStyle.marginBottom,10)||0))); 

 

posted @ 2015-02-06 10:10  flyfishing  阅读(357)  评论(0编辑  收藏  举报