<!DOCTYPE html> <html> <head> <style type="text/css"> body{ background-image: url(../image/flower.gif); background-repeat: repeat; } div{ margin:100px; height:200px; border:1px solid black; background-image: url(../image/smile-face.png); background-repeat: inherit; } </style> </head> <body> <div></div> </body> </html>
background-repeat: |
repeat |
repeat-x |
repeat-y |
no-repeat |