- 0133技术站
- 联系QQ:88526
- QQ交流群

- 微信公众号

如果该元素的type属性为radio,则radiogroup属性用来表示这一组command元素的公用名称。如果type属性不是radio,则radiogroup属性必须省略。具有的属性值:
groupname :表示当命令被激活或切换时将被切换的命令组的名称(仅适用于 type="radio")。
目前,几乎所有的主流浏览器都不支持 radiogroup 属性。
<command> 标签是 HTML5 中的新标签。
<command radiogroup="groupname">
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script> function setAlign() { alert("Some javaScript...."); } </script> </head> <body> <menu> <command type="radio" label="Left" radiogroup="alignment" onclick="setAlign('left')">Left</command> <command type="radio" label="Center" radiogroup="alignment" onclick="setAlign('center')">Center</command> <command type="radio" label="Right" radiogroup="alignment" onclick="setAlign('right')">Right</command> </menu> </body> </html>
点击 "运行实例" 按钮查看在线实例
推荐手册