【发布时间】:2017-04-26 08:37:04
【问题描述】:
^ 类似的东西 - 它使用 :after 吗? (无法为多行执行此操作)
.home-about h3:after{
margin-top:-15px;
content: " ";
background:#d7edf4;
z-index: 0;
}
【问题讨论】:
-
你可以在 h3 和 :after 上使用 position 属性
-
::after伪元素有两个冒号。一个冒号是不应再使用的旧语法。 developer.mozilla.org/en-US/docs/Web/CSS/::after