/** Zoomit, it actually scales the internal element of El * @ Param {htmlelemnt} EL to zoom in to the target htmlelement * @ Param {number} XScale X to zoom in ratio * @ Param {number} yscale y ratio */zoomit: function (El, XScale, yscale) {var S = kissy, style = $ (EL ). ATTR ('style') | ""; if (S. UA ['Firefox ']) {// ratio of X axis direction and Y direction ('transform', 'scale (' + XScale + ',' + yscale + ')'); // after scaling, the offset relative to the upper left corner of the parent element (el).css ('transform-origin', '0px 0px ');} else if (S. UA ['ie ']> = 9) Elastic Compute (elastic.css ('-MS-transform ', 'scale (' + XScale + 'region') Elastic Compute (el).css ('-MS-transform-origin ', '0px 0px ');} else if (S. UA ['ie'] <9) Elastic Compute (el).css ('zoom ', XScale);} else Elastic Compute (el).css ('-WebKit-transform ', 'scale (' + XScale + ', '+ yscale + '{'{}(el}.css ('-WebKit-transform-origin', '0px 0px ');}}
In the browser's opinion, kissy is used here; In attribute operations, JQ is used here. Readers can make corresponding modifications according to their habits.