<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使用另外的樣式文件