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辅助类
最新推荐文章于 2025-08-13 21:05:35 发布