Open ZhengXingchi opened 4 years ago
::before ::after等伪类中使用content:url()中的图片无法设置宽高
推荐使用
.news_content_navigate_base:after{ content:''; background-image: url("../../assets/home/right_arrow.png"); background-size: 15px 15px; display:inline-block; width:15px; height:15px; position: absolute; top:10px; right:10px; }
可以在伪元素添加图标
::before ::after等伪类中使用content:url()中的图片无法设置宽高
推荐使用