PictureInPictureWindow:width 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

PictureInPictureWindow 接口的 width 只读属性返回浮动视频窗口的宽度(以像素为单位)。

一个正整数,表示画中画窗口打开时浮动视频窗口的宽度(像素)。否则返回 0

规范

Specification
Picture-in-Picture
# ref-for-dom-pictureinpicturewindow-width

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
width

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.

参见