0

我正在为 Gmail 的 Promo 选项卡中的徽标寻找合适的尺寸。出于某种原因,我使用的徽标在 android 上运行良好,但在 iPhone 上它被放大了。

iPhone 上的标志示例:

iPhone 上的标志示例

Android 上的标志示例:

android 的标志示例

4

1 回答 1

1

回答:

虽然 Google 没有推荐的“促销”标签徽标的大小规格,但他们所有的示例都使用 48x48 像素的徽标。

更多信息:

“促销”选项卡的所有最佳做法都在“最佳做法”页面上提供。对于徽标,他们只指定协议而不是图像大小:

徽标网址

请务必使用 https(不是 http)URL。此徽标选择仅显示在电子邮件预览中。

但是,通过查看 Google 提供的示例,您可以看到每个示例都使用了此示例图像,其大小为 48x48 像素:

入门页面:

// WARNING: Before sending email, either point the logo
// at your own image or delete the logo annotation.
//
// If showing a logo, we recommend using an https URL.
// It's not a requirement today, but may be in the future.
"logo": "https://www.gstatic.com/images/branding/product/1x/googleg_48dp.png"

故障排除页面:

<div itemscope itemtype="http://schema.org/Organization">
    <meta itemprop="logo" content="https://www.gstatic.com/images/branding/product/1x/googleg_48dp.png" />
</div>

和:

{
  "@context": "http://schema.org/",
  "@type": "PromotionCard",
  "logo": "https://www.gstatic.com/images/branding/product/1x/googleg_48dp.png"
}

因此,可以安全地假设一个 48x48 大小的 PNG 格式的徽标足以用于促销标签徽标。

参考:

于 2020-10-13T08:29:43.327 回答