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> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $(".ex .hide").click(function(){ $(this).parents(".ex").hide("slow"); }); }); </script> <style> div.ex { màu nền: #e5eecc; phần đệm: 7px; đường viền: liền khối 1px #c3c3c3; } </style> </head> <body> <h3>Giao dịch đảo</h3> <div class="ex"> <button class="hide">Giấu tôi đi</button> <p>Liên hệ: Helen Bennett <br> Garden House Crowther Way<br> Luân Đôn</p> </div> <h3>Đặc sản Paris</h3> <div class="ex"> <button class="hide">Giấu tôi đi</button> <p>Liên hệ: Marie Bertrand<br> 265, Đại lộ Charonne<br> Paris</p> </div> </body> </html>