欢迎来到3672js教程,我们关注js教程、js框架、js代码特效等。

javascript css styleFloat和cssFloat

3672Js.Com2019-03-08 21:43 来源:未知 阅读:12721 关注度2

javascript css styleFloat和cssFloat


下面是兼容性代码
复制代码 代码如下:

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.';
}
}

本站文章为3672js教程网友分享投稿,版权归原作者,欢迎任何形式的转载,但请务必注明出处。同时文章内容如有侵犯了您的权益,请联系我们处理。
相关内容
    暂无相关文章
评论已被关闭
{dede:include filename="foot.htm"/}