plantain
V2EX  ›  CSS

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

  •  
  •   plantain · Feb 13, 2015 · 4057 views
    This topic created in 4163 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   ·   938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:00 · PVG 04:00 · LAX 13:00 · JFK 16:00
    ♥ Do have faith in what you're doing.