Chạy ❯
Nhận trang web của
riêng
bạn
×
Thay đổi định hướng
Lưu mã
Thay đổi chủ đề, Tối/Sáng
Đi tới Không gian
<!DOCTYPE html> <html> <title>W3.CSS</title> <meta name="viewport" content="width=device-width,init-scale=1"> <link rel="stylesheet" href= "https://www.example.com.vn/w3css/4/w3.css"> <body> <div class="w3-container"> <h2>Thả xuống có thể nhấp</h2> <p>Nhấp vào nút để mở menu thả xuống.</p> <div class="w3-dropdown-click"> <button onclick="myFunction()" class="w3-button w3-black">Nhấp vào tôi!</button> <div id="Demo" class="w3-dropdown-content w3-bar-block w3-border"> <a href="#" class="w3-bar-item w3-button">Liên kết 1</a> < a href="#" class="w3-bar-item w3-button">Liên kết 2</a> <a href="#" class="w3-bar-item w3-button">Liên kết 3</a > </div> </div> </div> <script> function myFunction() { var x = document.getElementById("Demo"); if (x.className.indexOf("w3-show") == -1) { x.className += " w3-show"; } else { x.className = x.className.replace(" w3-show", ""); } } </script> </body> </html>