比如:

<input class='class1 class2'>

class1 和 class2 中多定义了颜色,那么最后的颜色,要看在加载css文件的时候,哪个class是最后加载的,就会呈现哪个的颜色。


例如:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - 菜鸟教程(runoob.com)</title>
<script src="https://cdn.bootcss.com/vue/2.2.2/vue.min.js"></script>
<style>
.active {
	width: 100px;
	height: 100px;
	background: green;
}
.text-danger {
	background: red;
}
</style>
</head>
<body>
<div id="app">
	<div class="text-danger active"></div>
</div>
</body>
</html>

最后的颜色为:红色。

因为text-danger 在是最后加载的。