<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<style type="text/css">
.item-1.red{color: red;}
</style>
</head>
<body>
<h1 class="item-1 red">1</h1>
<h1 class="item-2">2</h1>
</body>
</html>
css同时满足两个类名才有效果的写法
最新推荐文章于 2023-12-02 22:56:37 发布