编辑下面的代码:【加编码】
<html> <body> <details id="myDetails"> <summary>Copyright 1999-2014.</summary> <p> - by Refsnes Data. All Rights Reserved.</p> <p>All content and graphics on this web site are the property of the company Refsnes Data.</p> </details> <p>点击 "尝试一下" 按钮来设置额外描述信息可见。</p> <button onclick="myFunction()">尝试一下</button> <script> function myFunction() { document.getElementById("myDetails").open=true; } </script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂