CSS3에서도 가능합니다.
#exampleA {
width: 500px;
height: 250px;
background-image: url(decoration.png), url(ribbon.png), url(old_paper.jpg);
background-repeat: no-repeat;
background-position: left top, right bottom, left top;
}
순서는 (왼쪽) 처음부터 실행 (오른쪽) 마지막으로 가기 계층 인 바닥 배경 레이어 인 : 그것은 가장 간단한이기에서, 여기 당신이 그것을 달성하는 방법에 대한 예입니다 (즉, 레이어링하는 경우).
편집 : 당신이 형식의이 종류에 CSS를 중단 할 필요가 같은 그레이 스케일로 각 배경 이미지에 더 복잡 stylings가를 적용하려면 :
/* this is the master css block - the height and width here represent the total coverage for all child background images */
.sample1 .sea, .sample1 .mermaid, .sample1 .fishing {
height: 300px;
width: 480px;
position: relative;
}
/* individual stylings for each background image featured - apply greyscale and separate width and heights here */
.sample1 .sea {
background: url(media/sea.png) repeat-x top left;
}
.sample1 .mermaid {
background: url(media/mermaid.svg) repeat-x bottom left;
}
.sample1 .fish {
background: url(media/fish.svg) no-repeat;
height: 70px;
width: 100px;
left: 30px;
top: 90px;
position: absolute;
}
.sample1 .fishing {
background: url(media/fishing.svg) no-repeat top right 10px;
}
는 빠른 응답 주셔서 감사합니다! 나는 당신의 제안을 시도하고 그것은 작동합니다! 그러나 한 가지 문제가 있습니다. 배경 이미지에 크기 나 회색조를 적용 할 수 없습니다. 다음은 사용중인 코드입니다. – user2209090
귀하의 의견을 반영하도록 답변을 업데이트했습니다. – adaam
이것은 천재 !!!!!!!입니다 내가 어떻게 생각하지 않았어?! 이 답변에는 수백 가지 이상의 투표가 있어야합니다! 이것은 들려야한다! :디 – Goowik