【发布时间】:2019-07-11 10:50:02
【问题描述】:
我正在尝试使用 Sass 实现图像中显示的样式。我使用h1 标签和:after psuedo-selector 来创建这一行。但是:after 不起作用。我可以在 React 中实现这种风格。我正在使用 Angular7 和 angular-cli。
<h1 class="login">Login</h1>
.login {
margin-top: 0;
position: relative;
&:after {
display: block;
border-bottom: 4px solid #faaf4a;
bottom: 0;
left: 0;
position: absolute;
width: 40px;
}
}
请帮帮我...
【问题讨论】:
标签: angular sass frontend primeng angular7