7b2主题给头像添加头像框/头像挂饰

演示在本站.评论区

将下列代码放入子主题child.js文件中(图片可自己更换).

[content_hide]

$(function(){
$('.avatar-parent').prepend('<img src="https://p0.meituan.net/dpgroup/240f1dfa30b57e744cdbbfbb3b679c25476735.png" class="txgj">');
})

[/content_hide]

将下列代码放入子主题style.css样式中

[content_hide]

.txgj {
top: -2px;
transform: scale(1.7);
width: 90px;
position: absolute;
}
.top-user-info-box-name .txgj{
left: -5px;
transform: scale(1);
top: 6px;
}
.post-meta-left .txgj{
display: none;
}
.post-meta-left .avatar-parent .txgj{
display: block;
transform: scale(1.6);
display: block;
left: 0px!important;
}
.top-user-box-drop .avatar {
border-radius: 50%;
}
.comment .gravatar img {
border-radius: 50%;
}

[/content_hide]

强制刷新即可看到效果.同本站.

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注