【发布时间】:2015-08-21 18:57:36
【问题描述】:
查询:
当我将 html 按钮更改为 ASP 按钮时,如何保持代码的“之后”部分正常工作。不知道为什么会掉?
问题:
当我将 <button 更改为 <asp:button 时,CSS 的 after 部分不再起作用。失败的部分代码是#course .bottom .btn-next:after
代码:
#course .bottom .next {
padding-right: 40px;
}
#course .bottom .btn-next {
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
}
#course .bottom .btn-next:after {
left: 100%;
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
border-color: rgba(255, 255, 255, 0);
border-left-color: #ffffff;
border-width: 20px;
margin-top: -20px;
}
研究实例:
Is it possible to have a :after pseudo element on a button?(与 html 而非 .NET 按钮相关)
【问题讨论】: