C
运行 »
×
下载代码
⇫
加载文件
改变主题,夜晚/白天
<!DOCTYPE html> <html> <title>W3.CSS</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.rocschool.com/public/static/w3css/4/w3.css"> <body> <button class="w3-button w3-red" onclick="document.getElementById('id01').style.display='block'">Show Panel</button> <div id="id01" class="w3-panel w3-green w3-display-container" style="display:none"> <span onclick="this.parentElement.style.display='none'" class="w3-button w3-red w3-display-topright">x</span> <p>Click on the X to close this panel.</p> <p>Click on the X to close this panel.</p> </div> </body> </html>