V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
plantain
V2EX  ›  CSS

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

  •  
  •   plantain · Feb 13, 2015 · 3933 views
    This topic created in 4093 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   ·   932 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:19 · PVG 05:19 · LAX 14:19 · JFK 17:19
    ♥ Do have faith in what you're doing.