plantain
V2EX  ›  CSS

transform/translate 和 margin 都可以进行平移,它们的区别是什么?各自的适合场景呢?

  •  
  •   plantain · Feb 13, 2015 · 4084 views
    This topic created in 4178 days ago, the information mentioned may be changed or developed.
    例如:
    1、transform="translate(10,15)"
    2、margin:15px 0 0 10px
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1011 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:55 · PVG 02:55 · LAX 11:55 · JFK 14:55
    ♥ Do have faith in what you're doing.