安科网
源代码:
点击运行
<!DOCTYPE html> <html> <body> <p>点击按钮创建带有指定值的 METER 元素。</p> <button onclick="myFunction()">尝试一下</button> <p><b>注意:</b>Internet Explorer 和 Safari 5(及其之前的版本)不支持 meter 对象。</p> <script> function myFunction() { var x = document.createElement("METER"); x.setAttribute("min", "0"); x.setAttribute("max", "100"); x.setAttribute("value", "65"); document.body.appendChild(x); }; </script> </body> </html>
运行结果
Copyright © 2013 - 2019 Ancii.com All Rights Reserved
京ICP备18063983号-5
京公网安备11010802014868号