browserSettings.imageAnimationBehavior
一个 BrowserSetting
对象,用于更改浏览器处理动画图像(例如 GIF)的方式。
其底层值是一个字符串,可以取三个值中的一个:
- “normal”:默认值。按照正常方式播放动画图像。
- “none”:完全不播放图像动画。
- “once”:只播放动画一次。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
imageAnimationBehavior |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
示例
禁用动画图像:
js
browser.browserSettings.imageAnimationBehavior.set({ value: "none" });