CSS 超大背景图片的做法
CSS 超大背景图片的做法
超大背景图片,背景定位,水平居中,垂直靠上
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> body{ background-image: url(images/bg.jpg); background-repeat: no-repeat; /*这种写法一般是我们以后超大背景图片的做法,背景定位,水平居中,垂直靠上*/ background-position: center top; } </style> </head> <body> </body> </html>
上一篇:MySQL 数据完整性详解
下一篇:php内部函数