Technology
CSS Javascript 속성 레퍼런스
CSS 속성을 자바스크립트 레퍼런스로 변환하는 방법을 알아보세요. 웹 개발에 필수적인 정보의 전환을 쉽게 이해할 수 있습니다.
CSS Properties To JavaScript Reference Conversion
| CSS Property | JavaScript Reference |
|---|---|
| background | background |
| background-attachment | backgroundAttachment |
| background-color | backgroundColor |
| background-image | backgroundImage |
| background-position | backgroundPosition |
| background-repeat | backgroundRepeat |
| border | border |
| border-bottom | borderBottom |
| border-bottom-color | borderBottomColor |
| border-bottom-style | borderBottomStyle |
| border-bottom-width | borderBottomWidth |
| border-color | borderColor |
| border-left | borderLeft |
| border-left-color | borderLeftColor |
| border-left-style | borderLeftStyle |
| border-left-width | borderLeftWidth |
| border-right | borderRight |
| border-right-color | borderRightColor |
| border-right-style | borderRightStyle |
| border-right-width | borderRightWidth |
| border-style | borderStyle |
| border-top | borderTop |
| border-top-color | borderTopColor |
| border-top-style | borderTopStyle |
| border-top-width | borderTopWidth |
| border-width | borderWidth |
| clear | clear |
| clip | clip |
| color | color |
| cursor | cursor |
| display | display |
| filter | filter |
| font | font |
| font-family | fontFamily |
| font-size | fontSize |
| font-variant | fontVariant |
| font-weight | fontWeight |
| height | height |
| left | left |
| letter-spacing | letterSpacing |
| line-height | lineHeight |
| list-style | listStyle |
| list-style-image | listStyleImage |
| list-style-position | listStylePosition |
| list-style-type | listStyleType |
| margin | margin |
| margin-bottom | marginBottom |
| margin-left | marginLeft |
| margin-right | marginRight |
| margin-top | marginTop |
| overflow | overflow |
| padding | padding |
| padding-bottom | paddingBottom |
| padding-left | paddingLeft |
| padding-right | paddingRight |
| padding-top | paddingTop |
| page-break-after | pageBreakAfter |
| page-break-before | pageBreakBefore |
| position | position |
| float | styleFloat |
| text-align | textAlign |
| text-decoration | textDecoration |
| text-decoration: blink | textDecorationBlink |
| text-decoration: line-through | textDecorationLineThrough |
| text-decoration: none | textDecorationNone |
| text-decoration: overline | textDecorationOverline |
| text-decoration: underline | textDecorationUnderline |
| text-indent | textIndent |
| text-transform | textTransform |
| top | top |
| vertical-align | verticalAlign |
| visibility | visibility |
| width | width |
| z-index | zIndex |
Usage
Internet Explorer
"document.all.div_id.style.JS_property_reference = "new_CSS_property_value";"
Older Netscape's (4.7 and earlier)
"document.div_id.JS_property_reference = "new_CSS_property_value";"
Netscape 6.0+ and Opera (and other Mozilla)
"document.getElementById(div_id).style.JS_property_reference = "new_CSS_property_value";" "Note the use of parentheses instead of square brackets in newer Mozilla's "getElementById()" reference."
이 주제에 대한 다른 글
Technology
크롬의 폰트 렌더링 변화, 더 부드러운 폰트를 위한 'DirectWrite'
크롬의 폰트 렌더링인 'DirectWrite'가 업데이트 되어 더 부드러운 웹폰트 사용이 가능해졌습니다. 벡터타입 폰트 사용도 간편해질 전망입니다.
Technology
Normalize.css 와 reset.css 의 차이점
웹 디자인에서 Normalize.css와 reset.css의 주요 차이점을 쉽고 자세하게 설명합니다. 웹 페이지의 스타일을 어떻게 초기화할지 결정하는 데 도움이 됩니다.
Technology
안드로이드에서 문자들이 사라져버리는 현상
안드로이드 4.0.3과 4.0.4 버전의 웹브라우저에서 CSS Animation 지원 문제로 인해 문자가 사라지는 현상에 대한 설명과 원인 분석.