javascript css styleFloat和cssFloat

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

javascript css styleFloat和cssFloat

  2020-05-12 我要评论
下面是兼容性代码
复制代码 代码如下:

LTFunction.setFloatStyle=function(obj,style)
{
var sty=obj.style;
if('cssFloat' in sty){
obj.style.cssFloat=style;
}else if('styleFloat' in sty){
obj.style.styleFloat=style;
}else{
throw 'set float style:'+style+'error.';
}
}

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们