기본 방법
body {
background-color: #ffffff;
background-image: url("img_tree.png");
background-repeat: no-repeat;
background-position: right top;
}
속성 방법
body {
background: #ffffff url("img_tree.png") no-repeat right top;
}
속성 방법 사용시 값 순서
1. background-color : 배경 색
2. background-image : 배경 이미지
3. background-repeat : 배경 반복
4. background-attatchment : 배경 고정/스크롤
5. background-position : 배경 위치
속성을 설정하지 않을 시 누락이 가능하다.