English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Dieser Artikel beschreibt die Verwendung der HTML command radiogroup-Eigenschaft, zeigt Beispiele zur Verwendung, Kompatibilität des Browsers, Syntaxdefinition und detaillierte Informationen zu seinen Eigenschaftswerten.
Ein <command> Element, das zu einer radiogroup gehört:
<!DOCTYPE html> <html> <kopf> <meta charset="utf-8"> <titel>Verwendung der HTML <command> radiogroup-Eigenschaft-Grund教程(oldtoolbag.com)</titel> <skript> function setAlign() { alert("Einige JavaScript...."); } </skript> </kopf> <body> <menu> <command type="radio" label="Links" radiogroup="Ausrichtung" onclick="setAlign(&"39;left')">Links</command> <command type="radio" label="Mitte" radiogroup="Ausrichtung" onclick="setAlign(&"39;center')">Mitte</command> <command type="radio" label="Recht" radiogroup="Ausrichtung" onclick="setAlign(&"39;right')">Recht</command> </menu> <p><b>Attention:</b>Currently, almost all mainstream browsers do not support the radiogroup attribute.</p> </body> </html>Test See ‹/›
IEFirefoxOperaChromeSafari
Currently, almost all mainstream browsers do not support the radiogroup attribute.
The radiogroup attribute specifies the name of the command group, which will be toggled when the command is activated or switched.
Note:This attribute can only be used for common commands of type "radio", i.e., it is only available when type="radio".
<command> Tag is an HTML5 in the new tag.
<command radiogroup="groupname">
Value | Description |
---|---|
groupname | Specify the name of the command group that will be toggled when the command is activated or switched (only applicable for type="radio"). |