HTML DOM HR 개체
HR 개체
HR 개체는 HTML <hr> 요소를 나타냅니다.
HR 개체에 액세스
getElementById()를 사용하여 <hr> 요소에 액세스할 수 있습니다.
예시
var x = document.getElementById("myHR");
HR 개체 만들기
document.createElement() 메서드를 사용하여 <hr> 요소를 만들 수 있습니다.
예시
var x = document.createElement("HR");
HR 개체 속성
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the alignment of a horizontal line |
color | Not supported in HTML5. Use style.color instead. Sets or returns the color of a horizontal line |
noshade | Not supported in HTML5. Sets or returns whether a horizontal line should render in one solid color (noshaded) |
size | Not supported in HTML5. Use style.height instead. Sets or returns the height of a horizontal line |
width | Not supported in HTML5. Use style.width instead. Sets or returns the width of a horizontal line |
표준 속성 및 이벤트
관련 페이지
HTML 참조: HTML <hr> 태그