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>