摘要: 有些页面样式不规范,没有写在一个class里,例如:<div id="show" style="width:100px; padding-top:10px; font-size:12px;"></div>这种情况下清空style可以removeAttr()方法移除style属性来实现$("#show").removeAttr("style"); //ie,ff均支持$("#show").attr("style",""); //ff支 阅读全文
posted @ 2011-11-29 17:36 人来人往 阅读(149743) 评论(0) 推荐(4) 编辑