darasion
V2EX  ›  问与答

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

  •  
  •   darasion · Aug 3, 2011 · 4079 views
    This topic created in 5398 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   ·   2893 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:03 · PVG 20:03 · LAX 05:03 · JFK 08:03
    ♥ Do have faith in what you're doing.