摘要: 一、使用js操作css属性的写法1、对于没有中划线的css属性一般直接使用style.属性名即可。如:obj.style.margin,obj.style.width,obj.style.left,obj.style.position2、对于含有中划线的css属性,将每个中划线去掉并将每个中划线后的第一个字符换成大写即可。如:obj.style.marginTop,obj.style.borderLeftWidth,obj.style.zIndex,obj.style.fontFamily等3、js操作css float属性的特殊写法因为float是javascript的保留字,我们不能直接使 阅读全文
posted @ 2014-03-03 16:52 浪漫小生 阅读(636) 评论(0) 推荐(0) 编辑