📜  点击变换 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:25.878000             🧑  作者: Mango

代码示例1
/*If you want a css only solution you can use active*/
.crossRotate:active {
   transform: rotate(45deg);
   -webkit-transform: rotate(45deg);
   -ms-transform: rotate(45deg);
}

/*But the transformation will not persist when the activity moves. 
For that you need javascript (jquery click and css is the cleanest IMO).*/