HTML中CSS引入图片并铺满背景
HTML
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>背景图片拉伸铺满页面</title> <link type="text/css" rel="stylesheet" href="img.css"/> </head> <body> </body> </html>
CSS
body{ background-image: url(../../img/002.jpg); background-size: cover; }