CSS 背景平铺repeat
CSS 背景平铺repeat
语法:
Background-repeat : repeat | no-repeat | repeat-x | repeat-y
参数 | 作用 |
repeat | 背景图片纵向和横向平铺( 默认) |
no-repeat | 背景图片不平铺 |
repeat-x | 背景图片横向平铺 |
repeat-y | 背景图片纵向平铺 |
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> div { width: 600px; height: 300px; background-color: pink; background-image: url(images/ldh.jpg); background-repeat: repeat; background-repeat: no-repeat; background-repeat: repeat-x; background-repeat: repeat-y; } </style> </head> <body> </body> <div> </div> </html>
下一篇:php可变函数详解