Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. HTMLInputElement
  4. alpha

HTMLInputElement: alpha property

Limited availability

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

Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.

Thealpha property of theHTMLInputElement interface reflects the<input> element'salpha attribute, which indicates whether the CSS color's alpha component can be manipulated by the end user and does not have to be fully opaque. It is only relevant tocolor controls.

Value

A boolean value.

Examples

html
<input type="color" alpha />
js
const colorInput = document.getElementById("color-picker");if (colorInput.alpha) {  // Color values contain an alpha component} else {  // We have fully opaque color values}

Specifications

Specification
HTML
# dom-input-alpha

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp