transform變形和transform-origun變形原點

 1.  transfrom變形函數:translate(x,y)   rotate(x deg)    scale(x,y)

      如若transform後面要跟好幾個函數,那麼這幾個函數要用空格隔開。

 2.  其變形原點默認情況下都是在中心,transform-origin:x,y;

       x可以是left  center right

       y可以是top center bottom

       x和y這裏參數只寫了一個的話,另一個默認爲center

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章