Sublime Text
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> div{ width:200px; height:200px; border:1px solid black; } #father{ background-color:yellow; } #child{ margin:100px; background-color:transparent; } </style> </head> <body> <p>- Bởi vì phần tử #child có nền trong suốt, cho nên chúng ta có thể nhìn thấu các nội dung nằm bên dưới nó.</p> <div id="father"> <div id="child"></div> </div> </body> </html>
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> div{ width:200px; height:200px; border:1px solid black; } #father{ background-color:yellow; } #child{ margin:100px; background-color:transparent; } </style> </head> <body> <p>- Bởi vì phần tử #child có nền trong suốt, cho nên chúng ta có thể nhìn thấu các nội dung nằm bên dưới nó.</p> <div id="father"> <div id="child"></div> </div> </body> </html>