• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Extensions

      Developing extensions for web browsers

    • Web Technology

      Web technology reference for developers

  • Guides
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • MDN Plus
    • Overview

      A customized MDN experience

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Log in
  • Get MDN Plus
  1. Web 开发技术
  2. Web API 接口参考
  3. ImageBitmap
  4. ImageBitmap.width

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

In this article

  • 规范
  • 浏览器兼容性
  1. Canvas API
  2. ImageBitmap
  3. 实例属性
    1. height
    2. width
  4. 实例方法
    1. close() (en-US)
  5. Canvas API 的相关页面
    1. CanvasGradient
    2. CanvasPattern
    3. CanvasRenderingContext2D
    4. HTMLCanvasElement
    5. ImageBitmapRenderingContext
    6. ImageData
    7. OffscreenCanvas
    8. Path2D
    9. TextMetrics
    10. createImageBitmap

In this article

  • 规范
  • 浏览器兼容性

ImageBitmap.width

只读属性 ImageBitmap.width 返回 ImageBitmap 对象的 CSS 像素宽度。

规范

Specification
HTML Standard
# dom-imagebitmap-width-dev

浏览器兼容性

BCD tables only load in the browser

Found a content problem with this page?

  • Edit the page on GitHub.
  • Report the content issue.
  • View the source on GitHub.
Want to get more involved? Learn how to contribute.

This page was last modified on 2022年9月24日 by MDN contributors.

MDN logo

Your blueprint for a better internet.

  • MDN on Twitter
  • MDN on GitHub

MDN

  • About
  • Hacks Blog
  • Careers
  • Advertise with us

Support

  • Product help
  • Report an issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
Mozilla logo
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2023 by individual mozilla.org contributors. Content available under a Creative Commons license.