<html>
 <head>
 <title> new document </title>
 <link rel="stylesheet" type="text/css" href="report.css" id="ReportCss"/>
 <script>
  function switchToCss()
  {
   document.getElementById('ReportCss').href = "report-2px.css";
  }
 </script>
 </head>
<body>
<input type="button" value="改变风格" onclick="switchToCss()">

</body>

</html>

开始使用一个css样式,然后通过修改href使用另外的样式文件