SrtToTxt
This commit is contained in:
17
学生学习页面_files/rem750.js.下载
Normal file
17
学生学习页面_files/rem750.js.下载
Normal file
@@ -0,0 +1,17 @@
|
||||
(function(doc, win) {
|
||||
var docEl = doc.documentElement, resizeEvt = 'onorientationchange' in window ? 'onorientationchange' : 'resize', recalc =
|
||||
function() {
|
||||
var clientWidth = docEl.clientWidth;
|
||||
// if (!clientWidth) return;
|
||||
// if(clientWidth>=750){
|
||||
// docEl.style.fontSize = '100px';
|
||||
// }else{
|
||||
// }
|
||||
docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
|
||||
};
|
||||
|
||||
if ( !doc.addEventListener)
|
||||
return;
|
||||
win.addEventListener(resizeEvt, recalc, false);
|
||||
recalc();
|
||||
})(document, window);
|
||||
Reference in New Issue
Block a user