css文件中的样式在Chrome中是无法读取内容的。除非你的css内容在页面上(inline内联的),下面的写法才有效document.styleSheets[0].rules[0].style.width