2015年8月6日木曜日

devicePixelRatioを調べる

devicePixelRatio コンテンツの1pxを実際のデバイス上で何pxとして描画するかを表す。

出力方法:
document.write(window.devicePixelRatio); 

あなたが使用しているデバイスの値
devicePixelRatio
screen.width
screen.height

0 件のコメント:

コメントを投稿