HTML BODY 背景图片
2014-03-11 00:24
351 查看
内嵌:
background:url(背景图片路径) no-repeat;/*不重复默认在左上方*/
background:url(背景图片路径) no-repeat center;/*不重复背景图片中间显示*/
background:url(背景图片路径) no-repeat bottom center;/*不重复背景图片底部中间显示*/
background:url(背景图片路径) no-repeat right top;/*不重复背景图片右上方显示*/
background:url(背景图片路径) no-repeat right bottom;/*不重复背景图片右下方显示*/
background:url(背景图片路径) no-repeat left bottom;/*不重复背景图片左下方显示*/
background:url(背景图片路径) #000 no-repeat;/*背景色上插入不重复背景图片*/
background:url(背景图片路径) no-repeat 0px 0px;/*不重复背景图片定位第一个0px是指x轴也就是横向,第二个0px是指y轴也就是纵向*/
background:url(背景图片路径) repeat-x;/*背景图片横向平铺*/
background:url(背景图片路径) repeat-y;/*背景图片纵向平铺*/
background:url(背景图片路径) repeat;/*背景图片满屏平铺*/
style/css:
body {
background-image: url(图片位置) repeat;
}
background:url(背景图片路径) no-repeat;/*不重复默认在左上方*/
background:url(背景图片路径) no-repeat center;/*不重复背景图片中间显示*/
background:url(背景图片路径) no-repeat bottom center;/*不重复背景图片底部中间显示*/
background:url(背景图片路径) no-repeat right top;/*不重复背景图片右上方显示*/
background:url(背景图片路径) no-repeat right bottom;/*不重复背景图片右下方显示*/
background:url(背景图片路径) no-repeat left bottom;/*不重复背景图片左下方显示*/
background:url(背景图片路径) #000 no-repeat;/*背景色上插入不重复背景图片*/
background:url(背景图片路径) no-repeat 0px 0px;/*不重复背景图片定位第一个0px是指x轴也就是横向,第二个0px是指y轴也就是纵向*/
background:url(背景图片路径) repeat-x;/*背景图片横向平铺*/
background:url(背景图片路径) repeat-y;/*背景图片纵向平铺*/
background:url(背景图片路径) repeat;/*背景图片满屏平铺*/
style/css:
body {
background-image: url(图片位置) repeat;
}
相关文章推荐
- xHTML究竟有多少个标签?
- 开篇第一章先说说我的昵称psd2html
- XHTML语法规范
- 借用OpenOffice将上传的Word文档转换成Html格式
- 使用 HTML DOM 来分配事件
- XHTML简介
- 写给入门者的三十条HTML代码编写指南
- html学习总结(一)
- HTML link相关 属性
- html 学习-链接<a>响应(链接…
- html 5 标签分类
- HTML网页中添加音频视频动画...(转)
- html中特殊字符引用
- html 动态添加TABLE的行。
- InnerHtml和InnerText的区别
- html之img标签
- html中特殊字符引用
- 过滤字符串html标签方法
- HTML常用标签参考学习
- 对html与body的一些研究与理解