darasion
V2EX  ›  问与答

jquery里,单元格 slide 效果,为啥会有跳动?怎样解决这种跳动?

  •  
  •   darasion · Aug 3, 2011 · 4083 views
    This topic created in 5401 days ago, the information mentioned may be changed or developed.
    代码大致是这样:

    <table>

    <tr><td>A</td><td>B</td><td>C</td></tr>
    <tr id="effect" class="hide"><td>D</td></tr>

    </table>


    .hide { display:none; }


    $('#effect').slideDown();


    当 effect 滑动的时候,会发生跳动,表格突然被挤宽很多,然后收缩。。最后才开始下滑。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3091 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:32 · PVG 08:32 · LAX 17:32 · JFK 20:32
    ♥ Do have faith in what you're doing.