this.style.backgroundColor = 배경색
this.style.backgroundImage = 배경 이미지
this.style.color = 색상
this.style.fontWeight = 폰트의 두께 (normal, bold, bolder, lighter, 100, 200, 300, 400(디폴트), 500...)
this.style.textDecoration = 밑줄사용 'underline', 밑줄제거 'none'
this.style.position = 위치. 사용할 수 있는 값은 "절대" 위치값과 "상대" 위치값이다.
this.style.pixelWidth = 가로 길이 (width)
this.style.pixelHeight = 세로 길이 (height)
this.style.pixelLeft = x-y 좌표계를 사용할 경우 요소의 x 위치
this.style.pixelTop = x-y 좌표계를 사용할 경우 요소의 y 위치
자세한 내용과 많은 객체 안내는 아래의 주소 참고
http://msdn.microsoft.com/en-us/library/ms531205(vs.85).aspx
반응형
'홈페이지 제작 > JavaScript' 카테고리의 다른 글
자바스크립트 문자열 자르기 (0) | 2012.10.09 |
---|---|
자바스크립트를 이용하여 <BR> 자동 입력하기 (0) | 2011.07.20 |
getElementsByName 과 getElementById 사용예제 (0) | 2009.03.18 |
글자수를 바이트(Byte)로 계산하여 알려주는 소스 (0) | 2009.02.17 |
iframe의 세로크기(height)를 내용길이에 맞게 자동설정하기 (0) | 2009.02.03 |