Vue-类名与样式绑定-层级结构解析
发布时间
阅读量:
阅读量
<!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">
<title>Document</title>
<style>
.aClass {
color:red;
}
.bClass {
color:yellow;
}
.cClass {
font-size: 50px;
}
</style>
</head>
<body>
<!--
1. 理解
在应用界面中,某些元素样式是变化的
class/style绑定就是专门用来实现动态样式效果的技术
2. class绑定: :class='xxx'
xxx是
全部评论 (0)
还没有任何评论哟~
