plantain
V2EX  ›  CSS

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

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