我正在尝试在notice课堂上展示信息。
我尝试添加content:,但这不起作用。
.notice {
color:red;
content: "information below are instructions for this method for this page";
}
<div class="notice"></div>
content我想知道是否可以在div?中显示文本。notice每当我打电话给课堂时,我都想实际展示课堂上的内容notice。我有大约 40 页需要执行此操作,有些人可能会认为我应该在所有页面中输入它,但information在content更改中。
他们是在css中做到这一点的方法吗?