■
http://q.hatena.ne.jp/1168851667について。
function getActiveStyle(element,property) { if(element.currentStyle) { //IE or Opera if(property.indexOf("-")!=-1){ property = property.camelize(); } return element.currentStyle[property]; } else if(getComputedStyle) { //Mozilla or Opera if(property.indexOf("-")==-1){ property = property.deCamelize(); } return getComputedStyle(element,null).getPropertyValue(property); } return ""; } function setFont(){ var elmSample = document.createElement('span'); elmSample.style.fontSize='100px'; size = parseFloat(getActiveStyle(elmSample,'font-size')); document.body.style.fontSize = (12*100/size)+'pt'; } setInterval(setFont,100);
という力業で文字フォントサイズを変更出来なくすることも可能だったりする。