Scaling problem with -webkit-transform with mobile safari on iPad

后端 未结 2 984
后悔当初
后悔当初 2021-02-10 10:16

In the HTML page below, I am scaling a block with a -webkit-transform. The transform scales the block from its initial size to its double size.

This works a

2条回答
  •  野性不改
    2021-02-10 10:31

    I came across this question very late. The solution was without using important, and by changing the way of selecting an element. This is due to reason that ID selector is more closer and powerful than class selector.

    #block.zoom {
      -webkit-transform: scale(2);
    }
    

提交回复
热议问题