HTML中background-repeat 重复背景图属性的的作用
来源:互联网 发布:光翼学园网络班 编辑:程序博客网 时间:2024/05/17 02:17
body{
background-image: url(/i/eg_bg_03.gif);
background-repeat: repeat;
}
主要是用于,当所加载的背景图片的尺寸没有做够大的时候,即使用background-repeat:no-repeat;的时候在页面中显示的尺寸大小。
若要使用background: “图片路径”;时则会整个页面都是是路径图片,不会有重复的效果。
水平重复,background-repeat:no-repeat;
使用background-repeat属性,可以水平、垂直、整个页面,重复背景图。
水平重复,background-repeat:repeat-x;
垂直方向重复,background-repeat:repeat-y;
重复,background-repeat:repeat;
阅读全文
0 0
- HTML中background-repeat 重复背景图属性的的作用
- HTML&CSS——对背景图定位中background-position属性的自我理解
- HTML&CSS——对背景图定位中background-position属性的自我理解
- js中 background 的属性 image 和 repeat 的用法
- CSS中背景图片的属性:background-repeat、background-position、background-size
- html中background-image属性的设置
- html中background-image属性的设置
- CSS background-repeat 属性
- CSS background-repeat 属性
- CSS background-repeat 属性
- CSS background-repeat属性
- 关于CSS中background样式的repeat和no-repeat的坐标问题
- Android 背景图片重复 Background repeat
- html中,meta 的属性和作用
- CSS background-repeat 属性示例
- HTML背景图的显示
- 用background 显示背景图的部分
- InfoPath中重复表的操作+repeat+table+operation
- Validator验证Ajax提交表单的方法和ajax传参的方法
- 网络协议
- 分享一个好用的桌面日程软件——desktopca
- java基础知识精华(1)
- js判断两个日期是否相等的方法
- HTML中background-repeat 重复背景图属性的的作用
- yii2使用composer安装出错,github授权问题
- E-MapReduce HDFS文件快速CRC校验工具介绍
- hdu6060-思维&搜索&好题-RXD and dividing
- 2017 Multi-University Training Contest
- 使用训练好的googlenet caffemodel进行图片分类
- js 原生常用操作
- Keepalived系列—服务器安装与配置
- CSS中overflow属性介绍