演示在本站.评论区
将下列代码放入子主题child.js文件中(图片可自己更换)
$(function(){ $('.avatar-parent').prepend('<img class="txgj" src="https://p0.meituan.net/dpgroup/240f1dfa30b57e744cdbbfbb3b679c25476735.png" />'); })
将下列代码放入子主题style.css样式中
.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%; }
强制刷新即可看到效果,同本站,图片链接下面就可以