fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <script> function displayResult(){ document.getElementById("b1").style.width="300px"; } </script> </head> <body> <input type="button" id="b1" onclick="displayResult()" value="修改按钮的宽度"> </body> </html>
运行结果