Teams 不显示英雄形象
Teams doesn't display hero image
我一直在尝试通过连接器将卡片发送到 Teams 频道。这些卡片确实出现了,但没有显示我尝试发送的任何英雄形象。
Message Card Playground 正确显示图像,但它根本没有显示在 Teams 中。我对 "normal" 图片没有任何问题。
这是我通过 webhook 发送的 JSON,但我也尝试了 Twitter - Hero 图片样本卡,但它也不起作用:
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"summary": "Hero card testing",
"title": null,
"text": null,
"themeColor": "19b5fe",
"sections": [
{
"title": null,
"activityImage": "https://pbs.twimg.com/profile_images/862653089916096512/ljJwcmFp_bigger.jpg",
"activityTitle": "Hero image card",
"activitySubtitle": "This is a test",
"facts": [],
"text": null,
"heroImage": {
"image": "https://pbs.twimg.com/media/DFv74A0XkAEdwQ_.jpg"
},
"images": []
}
]
}
我是不是漏掉了什么?
团队目前不支持 HeroImage。这是积压的,但目前还没有预计到达时间。
我遇到了同样的问题。看起来作为一种解决方法,您可以在非部分的文本中使用内联图像降价语法。
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"summary": "Summary",
"title": "Title",
"text": "",
"themeColor": "E81123"
}
我将其描述为一种解决方法,因为图像在显示时不会以任何方式缩放。正如您从这个例子中看到的那样,一个大图像非常大并且溢出了容器。
英雄图片 ('heroImage') 目前仅在 Outlook 中受支持。将在未来某个时间在 Teams 中提供。
Card with a hero image
在卡片游乐场中尝试示例 Twitter 标记:https://aka.ms/messagecardplayground
我一直在尝试通过连接器将卡片发送到 Teams 频道。这些卡片确实出现了,但没有显示我尝试发送的任何英雄形象。 Message Card Playground 正确显示图像,但它根本没有显示在 Teams 中。我对 "normal" 图片没有任何问题。
这是我通过 webhook 发送的 JSON,但我也尝试了 Twitter - Hero 图片样本卡,但它也不起作用:
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"summary": "Hero card testing",
"title": null,
"text": null,
"themeColor": "19b5fe",
"sections": [
{
"title": null,
"activityImage": "https://pbs.twimg.com/profile_images/862653089916096512/ljJwcmFp_bigger.jpg",
"activityTitle": "Hero image card",
"activitySubtitle": "This is a test",
"facts": [],
"text": null,
"heroImage": {
"image": "https://pbs.twimg.com/media/DFv74A0XkAEdwQ_.jpg"
},
"images": []
}
]
}
我是不是漏掉了什么?
团队目前不支持 HeroImage。这是积压的,但目前还没有预计到达时间。
我遇到了同样的问题。看起来作为一种解决方法,您可以在非部分的文本中使用内联图像降价语法。
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"summary": "Summary",
"title": "Title",
"text": "",
"themeColor": "E81123"
}
我将其描述为一种解决方法,因为图像在显示时不会以任何方式缩放。正如您从这个例子中看到的那样,一个大图像非常大并且溢出了容器。
英雄图片 ('heroImage') 目前仅在 Outlook 中受支持。将在未来某个时间在 Teams 中提供。
Card with a hero image
在卡片游乐场中尝试示例 Twitter 标记:https://aka.ms/messagecardplayground