• 회원가입
  • 로그인
  • 구글아이디로 로그인

[ScreenOrientation] JS - ScreenOrientation.type 속성 - 장치 방향 표시 (= 스크린오리엔테이션타입 속성)

목차

  1. ScreenOrientation.type 정의
  2. ScreenOrientation.type 구문

 

ScreenOrientation.type 정의

 

장치 방향을 나타내는 값.

 



  • 읽기 전용.
  • IE, Safari 제외한 주요 최신 브라우저 모두 지원.

 

 

ScreenOrientation.type 구문

 

type = screen.orientation.type

 


[반환값]

 

아래 값 중 하나 가능. (string 자료형)

  • "portrait-primary"
  • "portrait-secondary"
  • "landscape-primary"
  • "landscape-secondary"

  



분류 제목
ScreenOrientation JS - ScreenOrientation 객체 - 장치 방향 정보 갖는 객체 (= 스크린오리엔테이션 객체)
ScreenOrientation JS - ScreenOrientation.type 속성 - 장치 방향 표시 (= 스크린오리엔테이션타입 속성)
ScreenOrientation JS - ScreenOrientation.angle 속성 - 문서의 현재 방향 각도 반환 (= 스크린오리엔테…
ScreenOrientation JS - ScreenOrientation.onchange 속성 ★ - 장치 방향 변경 이벤트 (= 스크린오리…
ScreenOrientation JS - ScreenOrientation.lock() 메서드 - 포함하는 문서의 방향을 기본 방향으로 잠그고…
ScreenOrientation JS - ScreenOrientation.unlock() 메서드 - 포함하는 문서의 방향을 기본 방향에서 잠…
목록
찾아주셔서 감사합니다. Since 2012