plantain
V2EX  ›  CSS

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

  •  
  •   plantain · Feb 13, 2015 · 4314 views
    This topic created in 4271 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   ·   Privacy   ·   Solana   ·   1460 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 23:05 · PVG 07:05 · LAX 16:05 · JFK 19:05
    ♥ Do have faith in what you're doing.