#wechat { display:inline-block; position:relative; } #pic { width:200px; height:200px; } #mesgNum { width:30px; height:30px; line-height:30px; font:16px; font-weight:bold; color:#fff; text-align:center; border-radius:50%; background-color:#f00; position:absolute; right:0px; top:-10px; }