css background学习
来源:互联网 发布:个人音乐网站程序源码 编辑:程序博客网 时间:2024/05/22 03:44
background中背景单词
background-color: 设置颜色作为对象背景颜色
background-image :设置图片作为背景图片
background-repeat :设置背景平铺重复方向
background-attachment 设置或检索背景图像是随对象内容滚动还是固定的。
background-position 设置或检索对象的背景图像位置。
使用方法
Background背景样式的值是复合属性值组合,也就是背景单词的值可以跟多个属性值,值与值之间使用一个空格间隔链接上即可。
如:
background:#000 url(图片地址) no-repeat left top
background-attachment使用解析:
background-attachment:fixed; 背景固定
background-attachment:scroll css背景图片是随对象内容滚动
background-position : 5px 6px div对象靠左距离5px,靠上距离6px
css背景资源地址
阅读全文
0 0
- CSS学习笔记:background
- css background学习
- CSS学习:关于background-position
- html5-CSS学习-background记录
- 【CSS学习】CSS背景background、background-position使用详解
- CSS学习(八)-background-origin、background-clip
- 学习CSS中background-position的使用方法
- H5学习之18 css-background
- CSS学习笔记13:background系列属性
- css学习笔记之background-position
- css background
- CSS Background
- CSS Background
- css background
- CSS-background
- css background
- CSS学习之<img> & Background - CSS: The Missing Manual
- css 属性选择器学习+css3 混合模式+css background
- 【<meta name="description" content=">】作用讲解
- Python select 详解
- C++完美转发
- android 动态获取电量
- HTTP、TCP协议总结(1)
- css background学习
- Android 仿iphone提醒事项(二)
- spring事务的七种传播属性和五种隔离级别
- python学习之集合
- hive的用户和用户权限
- 分布式事务最终一致性常用方案
- 关于函数不能返回局部对象的引用或者局部对象的指针
- RabbitMQ高可用性集群镜像实施方案
- python exercise1