before 在元素前,after在元素之后,使用:
.or::before { width: 100px; height: 1px; background: #000; display: block; content: '', } .or::after { width: 100px; height: 1px; background: #000; display: block; content: '', }
注意:最好设置为block。
标签:14,04,after,100px,block,before From: https://www.cnblogs.com/iuniko/p/17318811.html