css 實現字體旋轉

 1 用 css 實現字體的旋轉
 2     p {
 3         width: 60px;
 4         height: 60px;
 5         line-height: 47px;
 6         font-size: 20px;
 7         font-weight: bold;
 8         transform: rotate(-30deg);
 9         border-radius: 50%;
10         padding: 5px;
11    }

實現效果css

  

相關文章
相關標籤/搜索