aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/imagebitmap/width/index.html
blob: 14bbd1882f28d29303f7f2ef0439770e095b09bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
title: ImageBitmap.width
slug: Web/API/ImageBitmap/width
translation_of: Web/API/ImageBitmap/width
---
<div>{{APIRef("Canvas API")}}</div>

<div> </div>

<p>只读属性 <code><strong>ImageBitmap.width</strong></code> 返回 {{domxref("ImageBitmap")}} 对象的 CSS 像素宽度。</p>

<h2 id="规范">规范</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">规范</th>
   <th scope="col">状态</th>
   <th scope="col">备注</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', "webappapis.html#dom-imagebitmap-width", "ImageBitmap.height")}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="浏览器兼容性">浏览器兼容性</h2>



<p>{{Compat("api.ImageBitmap.width")}}</p>