Keinez
V2EX  ›  问与答

问:瀑布流情况下,想在高度不定的图片中央垂直居中的放置物件,实现难度有多大?会对前端工作造成多大影响?

  •  
  •   Keinez · Apr 29, 2013 · 2969 views
    This topic created in 4867 days ago, the information mentioned may be changed or developed.
    RT。

    实现应该不是问题,主要关心实现后前端性能、代码工作量和维护量的增减。如果因为要实现这样一个小部件造成大量计算/大量代码的话,估计得考虑别的实现方式了……
    1 replies    1970-01-01 08:00:00 +08:00
    Keinez
        1
    Keinez  
    OP
       Apr 29, 2013
    Solved.
    table-cell 大法……以前用过自己居然忘记了囧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5327 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 09:12 · PVG 17:12 · LAX 02:12 · JFK 05:12
    ♥ Do have faith in what you're doing.