where you need to place the sofa avatar. Just leave the content empty:
Then what you need to do is to use js to copy the avatar of the sofa, and fill the copied content into the
set above:
$(document).ready(function() {
$(".commentlist .avatar:last img").clone() .appendTo("#shafa");
});
That’s it. Note that the
avatar
above is assumed to be the style that contains the avatar image in your theme template. Name; then
:last
This is set for reverse order message boards like mine, because the classmates on the sofa are at the end of the message list; for sequential message boards, it is changed to
:first
.
Also, don’t forget to define the CSS style. In addition, using the same method, you can copy specified content, such as the message content of the sofa, names, etc., as long as they correspond to their style names.