我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译
您也可以阅读此文章的English (US)版。

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The HTMLPictureElement interface represents a <picture> HTML element. It doesn't implement specific properties or methods.

Properties

No specific property, but inherits properties from its parent, HTMLElement.

Methods

No specific method, but inherits methods from its parent, HTMLElement.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'HTMLPictureElement' in that specification.
Living Standard Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support3813

38

32 — 521

No259.1
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support3838 Yes

38

32 — 521

259.3 Yes

1. From version 32 until version 52 (exclusive): this feature is behind the dom.image.picture.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

See also

文档标签和贡献者

此页面的贡献者: ExE-Boss, Sebastianz, libbymc, fscholz, realityking, teoli
最后编辑者: ExE-Boss,