html5 css 背景


body{
/* background-attachment: fixed;*/
/* 背景图片是否固定或者随着页面的其余部分滚动*/
/* background-image;*/
/* 背景图片*/
/* background-position: bottom;*/
/* 设置背景图片的起始点*/
/* background-repeat: no-repeat;*/
/* 设置背景图片是否重复*/
background-color: gray;

background-image: url(picture.jpg);
background-repeat: no-repeat;
/* 是否重复*/
/* background-position: center top;*/
/* 第一个 从我的页面哪里显示 从哪里开始显示*/
background-attachment: fixed;
/* 是否滚动 fixed不滚动*/
/* background-attachment: local;*/
/* background-attachment: scroll;*/
/* background-attachment: inherit;*/

background-size: 100% 100%;
/* 规定背景图片的尺寸*/
background-origin: 110px 100px;

background-clip: border-box;


}

p{
width: 100px;
padding: 10px;
/* background-image: url(picture.jpg);*/
/* 内边距*/
background-color: yellow;


}

posted @ 2015-05-11 14:42  谢小锋  阅读(567)  评论(0)    收藏  举报