meta tag viewport

devforest443·2022년 7월 1일
0

log 2015. 4. 29. 14:45

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi"/>

width

사용자가 보게 될 화면의 넓이
device-widt로도 지정 가능. 즉 본래 디바이스 넓이 그대로 바로 적용 가능

width=240
width=device-width

height

사용자가 보게 될 화면의 높이
device-height로도 지정 가능. 즉 본래 디바이스 넓이 그대로 바로 적용 가능

height=800
height=device-height

initial-scale

초기 화면 배율, 초기 확대 비율

initial-scale=1.0
initial-scale=2.0

maximum-scale

최대 축소 비율
maximum-scale=1.0

minimum-scale

최소 축소 비율
minimum-scale=1.0

target-densitydpi

DPI 지정, 안드로이드에서만 지원

target-densitydpi=medium-dpi"
target-densitydpi=high-dpi"
target-densitydpi=device-dpi"

user-scalable

사용자의 확대 및 축소 권한

user-scalable=no
user-scalable=yes

profile
devforest443

0개의 댓글