Document: dir property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Document.dir
속성은 document에 존재하는 텍스트들의 방향성을 표현하는 문자열입니다. 그 방향은 왼쪽에서 오른쪽(기본값) 혹은 오른쪽에서 왼쪽이 될 수 있습니다. 가능한 값들은 오른쪽에서 왼쪽인 'rtl'
과 왼쪽에서 오른쪽인 'ltr'
입니다.
값
문자열
명세서
Specification |
---|
HTML # dom-document-dir |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
dir |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- See implementation notes.
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
함께 보기
dir
전역 속성