문의 드립니다.
궁금한점이 있어서 이렇게 문의 드립니다. 루트에 있는 css파일에 아래와 같이 배경을 적용하고 싶어서 그런데 이미지 넣은 부분이 잘 안돼서 문의 드립니다.background: 뒤에 어떤식으로 이미지 경로를 넣어야 하는지요?
body {
background:
font-family:'PT Sans Narrow', Arial, Helvetica, sans-serif;
font-size:12px;
color:#333;
line-height:18px;
}
body {
background:
font-family:'PT Sans Narrow', Arial, Helvetica, sans-serif;
font-size:12px;
color:#333;
line-height:18px;
}
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 4개
background: url(image.gif);
}
background:url('이미지 경로') repeat-x; -->가로로 반복된 이미지를 반복시킬 때
background:url('이미지 경로') repeat-y; -->세로로 반복된 이미지를 반복시킬 때
background:url('이미지 경로') repeat; -->가로,세로 전체적으로 배경이미지를 반복시킬 때
참고사이트
http://www.w3schools.com/cssref/pr_background-repeat.asp