CSSStyleDeclaration removeProperty () 메서드
예시
색상 속성을 제거합니다.
var declaration = document.styleSheets[0].cssRules[0].style;
var
removedvalue = declaration.removeProperty("color");
alert(removedvalue);
정의 및 사용
removeProperty() 메서드는 CSS 선언 블록에서 지정된 CSS 속성을 제거합니다.
브라우저 지원
Method | |||||
---|---|---|---|---|---|
removeProperty() | Yes | 9.0 | Yes | Yes | Yes |
통사론
object.removeProperty(propertyname)
매개변수 값
Parameter | Description |
---|---|
propertyname | Required. A String representing the name of the property to remove |
기술적 세부 사항
DOM 버전: | CSS 객체 모델 |
---|---|
반환 값: | 제거된 속성의 이전 값을 나타내는 문자열 |
❮ CSSStyleDeclaration 객체