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。
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。