diff options
author | MDN <actions@users.noreply.github.com> | 2021-06-20 00:37:04 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2021-06-20 00:37:04 +0000 |
commit | 0d495ad297d9e90ab35f54a822cd5e4e6a670713 (patch) | |
tree | 399dbe0b28db6d16fe7d13444e41b89e02e5ddc6 /files/zh-cn/web/api/devicelightevent | |
parent | bccf9a19dac45b167f5ea1a427fb682a78b48187 (diff) | |
download | translated-content-0d495ad297d9e90ab35f54a822cd5e4e6a670713.tar.gz translated-content-0d495ad297d9e90ab35f54a822cd5e4e6a670713.tar.bz2 translated-content-0d495ad297d9e90ab35f54a822cd5e4e6a670713.zip |
[CRON] sync translated content
Diffstat (limited to 'files/zh-cn/web/api/devicelightevent')
-rw-r--r-- | files/zh-cn/web/api/devicelightevent/index.html | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/files/zh-cn/web/api/devicelightevent/index.html b/files/zh-cn/web/api/devicelightevent/index.html deleted file mode 100644 index 3dffcc79b6..0000000000 --- a/files/zh-cn/web/api/devicelightevent/index.html +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: DeviceLightEvent -slug: Web/API/DeviceLightEvent -tags: - - API - - Ambient Light Events - - Experimental - - Interface - - NeedsBetterSpecLink - - NeedsMarkupWork - - 事件 -translation_of: Web/API/DeviceLightEvent ---- -<div>{{apiref("Ambient Light Events")}}{{SeeCompatTable}}</div> - -<p><code>DeviceLightEvent</code> 为 Web 开发人员提供来自光传感器或类似设备的、关于附近环境光水平的信息。例如,基于当前环境光水平调节屏幕的亮度,以便节省电量或提供更好的阅读性。</p> - -<h2 id="属性">属性</h2> - -<dl> - <dt>{{domxref("DeviceLightEvent.value")}}</dt> - <dd>环境光的亮度,单位为 {{interwiki("wikipedia", "lux")}}。</dd> -</dl> - -<h2 id="示例">示例</h2> - -<pre class="brush: js">window.addEventListener('devicelight', function(event) { - console.log(event.value); -});</pre> - -<h2 id="规范">规范</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">规范</th> - <th scope="col">状态</th> - <th scope="col">备注</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{ SpecName('AmbientLight', '', 'Ambient Light Events') }}</td> - <td>{{ Spec2('AmbientLight') }}</td> - <td>Initial specification</td> - </tr> - </tbody> -</table> - -<h2 id="浏览器兼容性">浏览器兼容性</h2> - - - -<p>{{Compat("api.DeviceLightEvent")}}</p> - -<h2 id="参见">参见</h2> - -<ul> - <li>{{ event("devicelight") }}</li> - <li><a href="/zh-CN/docs/WebAPI/Using_Light_Events">使用环境光事件</a></li> -</ul> |