HTML DOM 프리 객체
- 이전 페이지 <param>
- 다음 페이지 <progress>
Pre 객체
Pre 객체는 HTML <pre> 요소를 대표합니다。
Pre 객체 접근
getElementById()를 사용하여 <pre> 요소에 접근할 수 있습니다:
var x = document.getElementById("myPre");
Pre 객체 생성
document.createElement() 메서드를 사용하여 <pre> 요소를 생성할 수 있습니다:
var x = document.createElement("PRE");
Pre 对象属性
속성 | 描述 |
---|---|
width |
HTML5 中不支持。请改用 style.width。 设置或返回预格式化文本的 width 属性值。 |
- 이전 페이지 <param>
- 다음 페이지 <progress>