📜  aajouter une image dans un before after - CSS 代码示例

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

代码示例1
h2:before{
    content: '';
    background-image: url(../img/img.svg);
    background-size: 32px 32px;
    display: inline-block;
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    padding: 0 7px;
}