📜  如何使用下划线 ::after 放置 h1 标签 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:21.088000             🧑  作者: Mango

代码示例1
h1:after {
   background: none repeat scroll 0 0 #HEXCOLOR;
   bottom: -10px;
   content: "";
   display: block;
   height: 10px;
   position: relative;
   width: 100px;
}