Sublime Text
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> div{ background-color:yellow; position:absolute; height:400px; width:500px; left:0px; top:0px; z-index:-1; } </style> </head> <body> <img src="../image/cat.jpg" height="200"> <h2>(bạn hãy thử xóa thuộc tính z-index để thấy sự khác biệt)</h2> <div></div> </body> </html>
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> div{ background-color:yellow; position:absolute; height:400px; width:500px; left:0px; top:0px; z-index:-1; } </style> </head> <body> <img src="../image/cat.jpg" height="200"> <h2>(bạn hãy thử xóa thuộc tính z-index để thấy sự khác biệt)</h2> <div></div> </body> </html>