background标签及其属性
来源:互联网 发布:城管执法冲突数据 编辑:程序博客网 时间:2024/05/21 10:28
与background相关的标签及其属性
1、background-color 背景颜色
background-color:red;
background-color:#ff0000;
2、background-image 背景图片
background-image:url(../images/pic.jpg);
3、background-repeat 背景图片的重复方式
background-repeat:repeat;
background-repeat:no-repeat;
background-repeat:repeat-x;
background-repeat:repeat-y;
4、background-attachment 背景图像随滚动轴的移动方式
background-attachment:scroll;
background-attachment:fixed;
5、background-position 背景图片的位置
1)水平方向
left center right
2)垂直方向
top center bottom
3)组合
x-% y-%
x-px y-px
例如:
background-position:30px 40px;
background-position:center top;
最后background的组合方式:
background:#ff0000 url(../images/pic.jpg) no-repeat -50px 50px;
阅读全文
0 0
- background标签及其属性
- HTML标签及其属性
- font标签及其属性
- text标签及其属性
- html标签及其中的属性
- JSTL 各项标签及其属性
- html常用标签及其属性
- 解决浏览器Background标签的TD属性不被支持
- CSS基础(五)--行高、a标签及background属性
- background属性
- background属性
- html常用标签及其属性用法
- jsp常用标签及其属性说明
- html常用标签及其属性用法
- 回顾html的常用标签及其属性
- mybatis学习笔记---mapper标签及其子标签的属性
- JSP标准标签库(JSTL)及其标签属性
- 标签设置background-image
- 链表题
- tableview的headerview和footerview的做法
- 数据库操作
- Binary Tree Maximum Path Sum
- 备忘录模式学习和思考
- background标签及其属性
- 递推思想的美妙 Best Time to Buy and Sell Stock I, II, III O(n) 解法
- Node.js爬取十九大报告标题链接
- Number String
- 基于UDP的P2P聊天工具——0.2
- 字符串string类型
- SpringBoot 默认数据源
- 深度 | 他18岁时开发出火箭引擎,现在要挑战SpaceX
- 微软成立AI研究院,研究通用型AI挑战DeepMind