fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> </head> <body> <h3>访问 DETAILS 元素实例演示</h3> <details id="myDetails"> 一些额外信息... </details> <p>点击 "尝试一下" 按钮显示额外信息。</p> <button onclick="myFunction()">尝试一下</button> <script> function myFunction(){ var x = document.getElementById("myDetails"); x.open=true; } </script> </body> </html>
运行结果