---
title: Picture 元素:格式切换与艺术指导
keywords:
- picture
- source type
- art direction
- WebP/AVIF
- 响应式
description: 使用 `picture` 与 `source` 进行格式切换与艺术指导,为不同设备与布局选择最佳资源与构图,实现更好的响应式与性能。
categories:
- 文章资讯
- 编程技术
---
## 概述
`picture` 容器允许为不同媒体条件提供替代资源与格式(如 AVIF/WebP),并对不同视口提供不同构图,实现艺术指导。
## 用法/示例
```html

发表评论 取消回复