2
不知道为什么我没有得到我传递的大小,即260.我知道的限制是512,但我仍然得到96大小的头像而不是260这是这里的情况。get_avatar_url(get_avatar())总是返回默认的96尺寸?
我的代码:
<?php $avatar_url = get_avatar_url(get_avatar($curauth->ID, 260)); ?>
<div class="author-thumbnail" style="background-image: url('<?php echo $avatar_url; ?>');"></div>