사이트 내 전체검색
원하는 위치에 고정 배경 깔기
로빈아빠
https://cmd.kr/javascript/128 URL이 복사되었습니다.

본문

<head>와 </head>사이에 넣어주세여 
<style type="text/css">
<!--
body { background-color:#FFFFFF;00000 ; //배경색
background-image : url(이미지주소);
background-repeat :
no-repeat;no-repeat ;
background-attachment :fixed; fixed ; background-position :right middle}right middle}
//-->
</style> 
- 설명 -
 
no-repeat : 배경이미지 반복 유무

repeat : 가로, 세로 모두 배경이 반복
repeat-x : 가로 방향으로만 배경이 반복
repeat-y : 세로 방향으로만 배경이 반복
no-repeat : 배경이 한번만 나온다

fixed : 배경이미지 움직이지 않게 고정

right middle : 배경이미지 시작위치(가로, 세로)
right, left, center : 오른쪽, 왼쪽, 중앙
middle, bottom , top : 아래, 중앙, 위
*90%, 80% 이런식으로 퍼센트로 위치를 지정할 수도 있다.*

출처 : http://qdata.co.kr/bo/bbs/board.php?bo_table=jt&wr_id=70

댓글목록

등록된 댓글이 없습니다.

831 (3/17P)

Search

Copyright © Cmd 명령어 3.148.108.28