<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style> body { background: url(123fff.jpg) no-repeat center center fixed; /*兼容浏览器版本*/ -webkit-background-size: cover; -o-background-size: cover; background-size: cover; } </style> </head> <body> </body> </html>