通过js操作html代码块实现换肤效果
skin-01
css样式代码
body{
background-color: #00FFFF;
}
input{
width: 200px;
height: 50px;
background-color: gold;
color: red;
}
skin-02
css样式代码
body{
background-color: palegreen;
}
input{
width: 200px;
height: 50px;
border-radius: 25px;
background-color: lightslategrey;
color: red;
}
HTML代码:
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title></title>
<link rel="stylesheet" type="text/css" href="../css/skin-01.css"/ id="link01">
<script type="text/javasc