首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:CSS 参考手册
TRY RUN / 在线示例
CSS 参考手册 如何显示背景图像只有一次
CSS 参考手册 如何显示背景图像只有一次
源代码
运行
<!DOCTYPE html> <html> <head> <style> body { background-image:url('/statics/images/course/paper.gif'); background-repeat:no-repeat; } </style> </head> <body> <p>no-repeat will not repeat a background image. The image will only be shown once.</p> </body> </html>
运行结果