From e8650993059f96a20e5189b605e615fe186f8dc6 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 20 Jul 2015 17:06:19 +0800 Subject: [PATCH] update pagination --- style/mixins/compatibility.less | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/style/mixins/compatibility.less b/style/mixins/compatibility.less index 6f41ea71e2..5781cc9e1c 100644 --- a/style/mixins/compatibility.less +++ b/style/mixins/compatibility.less @@ -8,12 +8,13 @@ // support rotate for all browsers .cross-rotate(@degrees) { .rotate(@degrees); - @cos: cos(@degrees); - @sin: sin(@degrees); - @nl: `"\n"`; // Newline - /* IE8- */ - filter: ~"progid:DXImageTransform.Microsoft.Matrix(@{nl} M11=@{cos},@{nl} M12=-@{sin},@{nl} M21=@{sin},@{nl} M22=@{cos},@{nl} sizingMethod='auto expand'@{nl} )"; - -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(@{nl} M11=@{cos},@{nl} M12=-@{sin},@{nl} M21=@{sin},@{nl} M22=@{cos},@{nl} sizingMethod='auto expand'@{nl} )"; + /* IE6-IE8 */ + @radians: ~`parseInt("@{degrees}") * Math.PI * 2 / 360`; + @costheta: ~`Math.cos("@{radians}")`; + @sintheta: ~`Math.sin("@{radians}")`; + @negsintheta: ~`"@{sintheta}" * -1`; + filter: ~"progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=@{costheta}, M12=@{negsintheta}, M21=@{sintheta}, M22=@{costheta})"; + zoom: 1; } // for iconfont font size