My:profile-pic

出自Manyou开发者指南

跳转到: 导航, 搜索

描述

显示一个用户头像。本标签类似于 HTML 中的 img 标签,所以对于 img 标签有效的属性对本标签也同样有效。


属性

必选性参数名类型描述
必须 uid int 要显示头像的用户 UID。
可选 size string 要显示的头像大小,以下三种值可选:(默认值为 thumb)
  • thumb (48 像素 * 48 像素)
  • small (120 像素 * 120 像素)
  • normal (200 像素 * 200 像素)
linked bool 是否给头像加上链接到用户个人主页的链接 (默认值为 false)


范例

<my:profile-pic uid="12345" linked="true" />
Image:MYML_ProfilePic1.jpg


<my:profile-pic uid="12345" size="normal" linked="true" />
Image:MYML_ProfilePic2.jpg
个人工具
接口文档