/* 类 id 标签 伪元素 */ ._h1 { color: red; } .home { height: 100%; background: pink; } .home ._h2 { color: yellow; } /* .home */ /* ::after */