complete styles for cross browser CSS zoom

后端 未结 5 1015
小鲜肉
小鲜肉 2020-11-28 04:54

I am finding it hard to get fully cross browser CSS zoom properties ..what I\'ve is only these

zoom: 2;
-moz-transform: scale(2);
5条回答
  •  情书的邮戳
    2020-11-28 05:40

    Here is a css only solution

    .csszoom{
            -ms-transform: scale(1.5); /* IE 9 */
            -ms-transform-origin: 0 0;
            -moz-transform: scale(1.5); /* Firefox */
            -moz-transform-origin: 0 0;
            -o-transform: scale(1.5); /* Opera */
            -o-transform-origin: 0 0;
            -webkit-transform: scale(1.5); /* Safari And Chrome */
            -webkit-transform-origin: 0 0;
            transform: scale(1.5); /* Standard Property */
            transform-origin: 0 0;  /* Standard Property */
    }
    .ie8 .csszoom{
            zoom:1.5;
    }
    

    Change HTML tag to

     
      
    

提交回复
热议问题