给头像添加头像框/头像挂饰

分类: 亚洲365bet比分 发布时间: 2026-06-26 10:25:36
作者: admin 阅读: 9020 | 点赞: 516
给头像添加头像框/头像挂饰

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

代码语言:javascript复制$(function(){

$('.avatar-parent').prepend('');

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

代码语言:javascript复制.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%;

}强制刷新即可看到效果

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。