提交 e1a0d936 编写于 作者: NoSubject's avatar NoSubject

增加o2.zoom方法

上级 ff76ccc6
......@@ -2144,6 +2144,19 @@ o2.core = true;
}
}
};
o2.zoom = function(scale){
if (!layout) layout = {};
if (layout && !layout.userLayout) layout.userLayout = {};
layout.userLayout.scale = scale;
var s = (1/layout.userLayout.scale)*100;
var p = s+"%";
document.id(document.documentElement).setStyles({
"transform": "scale("+layout.userLayout.scale+")",
"transform-origin": "0 0",
"width": p,
"height":p
});
};
if (String.implement) String.implement({
"getAllIndexOf": function(str){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册