Loading...
Loading...
Compare original and translation side by side
.claude/product-marketing-context.md.cursor/product-marketing-context.md.claude/product-marketing-context.md.cursor/product-marketing-context.mdsrc<img><picture>| Do | Don't |
|---|---|
| |
<img><picture>src| 推荐做法 | 不推荐做法 |
|---|---|
| |
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>https://example.com/page</loc>
<image:image>
<image:loc>https://example.com/image.jpg</image:loc>
</image:image>
</url>
</urlset><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>https://example.com/page</loc>
<image:image>
<image:loc>https://example.com/image.jpg</image:loc>
</image:image>
</url>
</urlset>| Format | Best for | Notes |
|---|---|---|
| WebP | Photos, graphics | Smaller files, faster load; lossy + lossless; transparency, animation |
| AVIF | Modern browsers | Even smaller than WebP; check support |
| JPEG | Standard photos | Fallback; widely supported |
| PNG | Transparency, detail | Larger; use when needed |
| SVG | Icons, logos | Scalable; use |
| GIF | Simple animation | First frame only for preview |
| 格式 | 最佳适用场景 | 说明 |
|---|---|---|
| WebP | 照片、图形 | 文件体积更小、加载更快;支持有损/无损压缩、透明度、动画效果 |
| AVIF | 现代浏览器场景 | 体积比WebP更小,需要检查浏览器兼容性 |
| JPEG | 常规照片 | 兜底格式,兼容性最好 |
| PNG | 透明背景、高细节内容 | 体积较大,仅在必要时使用 |
| SVG | 图标、Logo | 可无限缩放,内联SVG需要使用 |
| GIF | 简单动画 | 仅第一帧会作为预览展示 |
<picture>srcsetsrc<img
srcset="image-320w.jpg 320w, image-480w.jpg 480w, image-800w.jpg 800w"
sizes="(max-width: 320px) 280px, (max-width: 480px) 440px, 800px"
src="image-800w.jpg"
alt="Descriptive alt text"><picture>
<source type="image/webp" srcset="image.webp">
<img src="image.png" alt="Descriptive alt text">
</picture><picture>srcsetsrc<img
srcset="image-320w.jpg 320w, image-480w.jpg 480w, image-800w.jpg 800w"
sizes="(max-width: 320px) 280px, (max-width: 480px) 440px, 800px"
src="image-800w.jpg"
alt="Descriptive alt text"><picture>
<source type="image/webp" srcset="image.webp">
<img src="image.png" alt="Descriptive alt text">
</picture>loading="lazy"<img src="hero.jpg" alt="..." loading="eager">
<img src="below-fold.jpg" alt="..." loading="lazy">loading="lazy"<img src="hero.jpg" alt="..." loading="eager">
<img src="below-fold.jpg" alt="..." loading="lazy">| Do | Don't |
|---|---|
| Useful, information-rich description | Keyword stuffing |
| Context of page content | "image of" or "photo of" (redundant) |
| Max ~125 characters (some assistive tech truncates) | Empty alt on meaningful images |
| Descriptive for functional images | Alt on purely decorative images (use |
<img src="puppy.jpg"/>alt="puppy dog baby dog pup pups puppies..."alt="puppy"alt="Dalmatian puppy playing fetch"| 推荐做法 | 不推荐做法 |
|---|---|
| 提供有用、信息丰富的描述 | 关键词堆砌 |
| 结合页面内容上下文描述 | 冗余表述如「图片 of」「照片 of」 |
| 长度控制在125字符左右(部分辅助技术会截断更长内容) | 有意义的图片使用空Alt |
| 功能性图片要说明功能 | 纯装饰性图片设置Alt内容(应该用 |
<img src="puppy.jpg"/>alt="puppy dog baby dog pup pups puppies..."alt="puppy"alt="Dalmatian puppy playing fetch"<title><svg aria-labelledby="svgtitle1">
<title id="svgtitle1">Descriptive text for the SVG</title>
</svg><title><svg aria-labelledby="svgtitle1">
<title id="svgtitle1">Descriptive text for the SVG</title>
</svg>| Do | Don't |
|---|---|
| |
| Short, hyphen-separated | Generic: |
| Localize filenames for translated pages | Overly long filenames |
| 推荐做法 | 不推荐做法 |
|---|---|
| |
| 简短、用连字符分隔 | 通用命名如 |
| 多语言页面对应本地化文件名 | 文件名过长 |
{
"@context": "https://schema.org",
"@type": "WebPage",
"url": "https://example.com/page",
"primaryImageOfPage": "https://example.com/images/cat.png"
}image{
"@context": "https://schema.org",
"@type": "WebPage",
"url": "https://example.com/page",
"primaryImageOfPage": "https://example.com/images/cat.png"
}image<meta property="og:image" content="https://example.com/images/cat.png"><meta property="og:image" content="https://example.com/images/cat.png">| Context | Priority | Notes |
|---|---|---|
| Hero | LCP, alt, no lazy | See hero-generator; above-fold, fast load |
| Trust badges | Alt text | See trust-badges-generator; e.g. "Norton Secured" |
| Landing page | All above | See landing-page-generator Pre-Delivery Checklist |
| OG / Twitter | 1200×630, 1200×675 | See open-graph, twitter-cards |
| Platforms | Per-platform | X, LinkedIn, Pinterest—see platform skills |
| 场景 | 优先级 | 说明 |
|---|---|---|
| 首屏大图 | LCP、alt、不使用懒加载 | 参考hero-generator技能;属于首屏内容,需要快速加载 |
| 信任徽章 | Alt text | 参考trust-badges-generator技能;例如「Norton Secured」 |
| 落地页 | 上述所有要求 | 参考landing-page-generator的交付前检查清单 |
| OG / Twitter预览 | 1200×630、1200×675尺寸 | 参考open-graph、twitter-cards技能 |
| 第三方平台 | 遵循平台要求 | X、LinkedIn、Pinterest等平台的要求参考对应平台技能 |