var css = {};
css.util = {
setStyle : function(el, prop, val) {
document.getElementById(el[i]).style[prop] = val
},
setCss : function(el, style) {
for ( var prop in style) {
if (!style.hasOwnProperty(prop))
continue;
css.util.setStyle(el, prop, style[prop]);
}
}
}
通过javascript设置CSS辅助类
最新推荐文章于 2024-07-30 10:56:44 发布