用css给网站封面加个图框

写了一个css代码给自己的网站加个封面图框
2 (1).png

css代码:

.block-image.feaimg a:after, .hunter-thumb i:after, .item-thumb a:after {
    content: ' ';
    position: absolute;
    inset: 0;
    background-image: url(https://upyun-img.rlxx.vip/2024/02/1840531996.png);
    background-size: cover;
    z-index: 1;
}

或者添加到主题header.php文件最后面应该就可以

<style>
.block-image.feaimg a:after, .hunter-thumb i:after, .item-thumb a:after {
    content: ' ';
    position: absolute;
    inset: 0;
    background-image: url(https://upyun-img.rlxx.vip/2024/02/1840531996.png);
    background-size: cover;
    z-index: 1;
}
</style>

觉得内容不错?我要

评论 暂无评论
暂无评论,快来抢沙发吧~