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> <!-- Thanh bên --> <div class="w3-sidebar w3-bar-block w3-animate-left" style="display:none;z-index:5" id="mySidebar"> <button class="w3-bar-item w3-button w3-large" onclick="w3_close()">Đóng ×</button > <a class="w3-bar-item w3-button" href="#">Liên kết 1</a> <a class="w3-bar-item w3-button" href="#">Liên kết 2< /a> <a class="w3-bar-item w3-button" href="#">Liên kết 3</a> </div> <!-- Nội dung trang --> <div class="w3-overlay w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" id="myOverlay"></div> <span class="w3-button w3-white w3-xxlarge" onclick="w3_open( )">☰</span> <div class="w3-container"> <h2>Nội dung trang..</h2> <p>Lớp w3-overlay có thể được sử dụng để tạo hiệu ứng lớp phủ, khi đang mở thanh bên. Lớp lớp phủ w3 thêm nền đen với độ mờ 50% cho "nội dung trang" - hiệu ứng này sẽ "làm nổi bật" điều hướng bên</p> <p>Nhấp vào "menu hamburger" để xem hiệu ứng.< /p> </div> <script> hàm w3_open() { document.getElementById("mySidebar").style.display = "block"; document.getElementById("myOverlay").style.display = "block"; } hàm w3_close() { document.getElementById("mySidebar").style.display = "none"; document.getElementById("myOverlay").style.display = "none"; } </script> </body> </html>