@
TashinV var FULL_CLASS = 'fullmode';
var addCssClass = function(el, className) {
removeCssClass(el, className);
el.className += ' ' + className;
};
var removeCssClass = function(el, className) {
el.className = el.className.replace(className, '');
};
window.addEventListener('resize', function() {
var body = document.body;
if (screen.width == window.outerWidth && screen.height == window.outerHeight) {
// 我不太确认window.fullScreen是否也能工作
addCssClass(body, FULL_CLASS);
} else {
removeCssClass(body, FULL_CLASS);
}
}, false);
///css
body.fullmode {zoom: 114%;}