diff options
author | puxiao <yangpuxiao@gmail.com> | 2021-05-11 11:14:57 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2021-05-11 12:14:45 +0800 |
commit | 0eb8e00236a553585693cc1f2fe2a238e419f2e2 (patch) | |
tree | e2781cd64c34d35b41b11dfadef22e135e4cdabb /files | |
parent | 0f5837e3d327fa8668eb9838c67fed40517a145e (diff) | |
download | translated-content-0eb8e00236a553585693cc1f2fe2a238e419f2e2.tar.gz translated-content-0eb8e00236a553585693cc1f2fe2a238e419f2e2.tar.bz2 translated-content-0eb8e00236a553585693cc1f2fe2a238e419f2e2.zip |
Update zh-cn/web/api/resizeobserver/observe/index.html
Diffstat (limited to 'files')
-rw-r--r-- | files/zh-cn/web/api/resizeobserver/observe/index.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/resizeobserver/observe/index.html b/files/zh-cn/web/api/resizeobserver/observe/index.html index 67d09f60fe..310f527176 100644 --- a/files/zh-cn/web/api/resizeobserver/observe/index.html +++ b/files/zh-cn/web/api/resizeobserver/observe/index.html @@ -17,6 +17,15 @@ translation_of: Web/API/ResizeObserver/observe <dl> <dt>target</dt> <dd>被观察的 {{domxref('Element')}} 或 {{domxref('SVGElement')}} 引用。</dd> + <dt>options {{optional_inline}}</dt> + <dd>一个指定观察设置的可选参数对象。目前只有一个可设置的选项: + <dl> + <dt><code>box</code></dt> + <dd>设置观察者将以哪种盒子模型来观察变动。可以设置的值为 + <code>content-box</code> (默认值),<code>border-box</code>,和 + <code>device-pixel-content-box</code>。</dd> + </dl> + </dd> </dl> <h3 id="返回值">返回值</h3> |