fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> </head> <body> 拾色器: <input type="color" id="myColor"> <p>点击 "点我" 按钮修改拾色器颜色。</p> <button onclick="myFunction()">点我</button> <script> function myFunction() { document.getElementById("myColor").value="#FF8040"; } </script> </body> </html>
运行结果