获取style标签和外联(link)样式表 将 rules = sheet.rules; 改成 rules = sheet.rules || sheet.cssRules; 兼容FF