English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <select> disabled Attribut

<select disabled="disabled" ist ein boolesches Attribut, das angibt, dass die Dropdown-Liste deaktiviert werden soll. Eine deaktivierte Dropdown-Liste ist nicht nutzbar und kann nicht angeklickt werden.

 HTML <select> Tag

Online-Beispiel

Deaktivierte Dropdown-Liste:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>HTML:<select> disabled Attribute usage-基础教程(oldtoolbag.com)</title> 

<option value="java">Java</option>
<option value="rust">Rust</option>
<option value="python">Python</option>


测试看看 ‹/›

浏览器兼容性

IEFirefoxOperaChromeSafari

所有主流浏览器都支持 disabled 属性。

定义和用法

disabled 属性是一个布尔属性。

disabled 属性指定下拉列表应该被禁用。

被禁用的下拉列表既不可用,也不可点击。

The disabled dropdown list is not available and cannot be clicked. The disabled attribute specifies that the dropdown list should be disabled. The disabled attribute is a boolean attribute. The definition and usage, all major browsers support the disabled attribute. Safari, Chrome, Opera, Firefox, IE, Browser compatibility, ›, Test to see ‹, html>, <, body>, select>, option>.

HTML 4.01 With HTML5Differences

None.

Differences between HTML and XHTML

In XHTML, attribute abbreviations are prohibited, the disabled attribute must be defined as <select disabled="disabled">.

Syntax

<select disabled>
 HTML <select> Tag