该模式在内容注入页面之前已经存在,但它不可见,请问您可以提出什么问题?伪元素存在但不可见
.aloha {
font-family: Medium;
font-size: 74px;
color: green;
position: relative;
display: inline-block;
margin: 0;
height: 85px;
}
.aloha:before {
width: 100%;
height: 85px;
color: red;
content: attr(data-text);
display: block;
}
<h1 date-text='TEXT' class='aloha'>TEXT</h1>
由于这是一个简单的拼写错误,我建议删除这个问题,因为它没有价值,未来用户 – LGSon