实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <title>html command icon 实例 - 自学教程(runoops.com)</title> <script> function setAlign() { alert("Some javaScript...."); } </script> </head> <body> <menu> <command type="radio" label="Left" icon="left.png" onclick="setAlign('left')">Left</command> <command type="radio" label="Center" icon="center.png" onclick="setAlign('center')">Center</command> <command type="radio" label="Right" icon="right.png" onclick="setAlign('right')">Right</command> </menu> <p><b>注意:</b>目前,几乎所有的主流浏览器都不支持 icon 属性。</p> </body> </html>
运行结果: