绝对位置,底部 0,firefox 不工作

position absolute, bottom 0, firefox not working

所以我想在文本的左上角和右下角放置 apostrow img,但是 firefox 不配合我:

我在 span 中有文本,并在之前和之后放置了 imgs

.komentarz-main .content span{
position: relative;
height: 100%;
}

.komentarz-main .content span:after{
display: block;
content: '';
position: absolute;
width: 11px;
height: 10px;
background-image: url("../img/cudzyslow.png");
background-size: contain;
background-repeat: no-repeat;
right: -15px;
bottom: 0px;
}

火狐浏览器结果:

chrome 结果:

有什么想法吗?

.komentarz-main .content span{ 
 display:inline-block; 
}

尝试以下代码,只需替换您的 css 代码

.komentarz-main .content span{
    position: relative;
    height: 100%;
    display: inline-block;
}

.komentarz-main .content span:after{
    display: inline-block;
    content: '';
    position: relative;
    width: 11px;
    height: 10px;
    background-image: url(../img/cudzyslow.png);
    background-size: contain;
    background-repeat: no-repeat;
    bottom: 0px;
}
<div class="komentarz-main">
<div class="content">
<span>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span>
</div>
</div>