<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> div{ border:20px dotted #10a244; padding:30px; width:200px; height:250px; background-image:url(../image/man.jpg); background-repeat:no-repeat; background-origin:content-box; background-size:cover; } </style> </head> <body> <div>. . . . . . . . . . . . . . . . . . . . . . . . . . . .</div> </body> </html>
background-origin: |
border-box
padding-box content-box
|
width: | |
height: |