摘要: 很少会插入一个新的style rule,今天为了临时解决页面样式问题,需要更新很多页面的一些样式,这些页面都引用了一个公共的js,为了方便,直接在这个公共的js里面向style sheet插入新的style rule。 先看代码: /** * Add a stylesheet rule to the document (may be better practice, ho... 阅读全文
posted @ 2013-03-31 22:11 舟~ 阅读(1215) 评论(1) 推荐(0) 编辑