网页
综合
更新时间 2026-11-16 04:29:45
<NuxtPicture> · @nuxt/image · Nuxt Modules
自动蜘蛛
nuxt.com
正文约 993 字
<NuxtPicture> is a drop-in replacement for the native <picture> tag.
Usage of <NuxtPicture> is almost identical to <NuxtImg> but also allows serving modern formats like webp when possible.
Learn more about the <picture> tag on MDN.
Format on pictures can be used to serve images in multiple formats. A legacy format will be generated automatically. So in the example below avif, webp and png would be generated. They will be added in the same order they are added to the format attribute.
Available formats are webp, avif, jpeg, jpg, png, and gif. If the format is not specified, it will respect the default image format.
Format used for fallback. Default is conditional:
Allows you to set additional HTML-attributes on the img element.
Discover how to use and configure the Nuxt Image component.
A Vue composable that returns a helper function to generate optimized image URLs.
Stay updated on new releases and features, guides, and community updates.
Copyright © 2016-2026 Nuxt - MIT License
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。