Sublime Text
<!DOCTYPE html> <html> <head> <style type="text/css"> .father{ width:300px; height:200px; border:1px solid black; background-image:url(../image/smile-face.png); } .child{ position:absolute; top:100px; left:100px; width:300px; height:200px; border:1px solid black; background-image:initial; } </style> </head> <body> <div class="father"> <div class="child"></div> </div> </body> </html>
<!DOCTYPE html> <html> <head> <style type="text/css"> .father{ width:300px; height:200px; border:1px solid black; background-image:url(../image/smile-face.png); } .child{ position:absolute; top:100px; left:100px; width:300px; height:200px; border:1px solid black; background-image:initial; } </style> </head> <body> <div class="father"> <div class="child"></div> </div> </body> </html>