<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="./js/vue.js"></script>
<title>Document</title>
<style>
.colorList li {
display: inline-block;
padding: 10px;
list-style: none;
}
.colorList li div {
width: 20px;
height: 20px;
}
.colorList li:nth-child(1) div {
background-color: #fff;
border: 1px solid #dbdbdb;
}
.colorList li:nth-child(2) div {
background-color: #cefeff;
border: 1px solid #cefeff;
}
.colorList li:nth-child(3) div {
background-color: #
vue 的 :style动态切换背景色和字体
最新推荐文章于 2024-06-30 11:06:07 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)