jsヘッダ設定ブラウザフォントサイズはウィンドウサイズによって変わります
1028 ワード
/* rem , root rem rem, html 320/20 = 16px */
/* rem , root rem rem, html 320/20 = 16px */
function
placeholderPic(){
var
w = document.documentElement.offsetWidth;
document.documentElement.style.fontSize=w/20+
'px'
;
}
placeholderPic();
window.onresize=
function
(){
placeholderPic();
}
の によく いられ、pc の にも いられる.
このセグメントjsをhtmlのドキュメントヘッダに くと、ブラウザウィンドウのサイズを することで のサイズ を できます.
はすべてremを する.