td colspan does not work while using jquery show/hide()

后端 未结 9 615
走了就别回头了
走了就别回头了 2021-01-13 16:14

I have a table of content

First Name Last Name Des
9条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 16:41

    I found that the firefox 'problem' is because a should have display:table-row. IE's glitch seems right since its glitches become interpreted as standard behavior.

    So the best solution is use addClass("someClass") and removeClass("someClass") to make things hidden. (with a CSS rule: someClass {display:none;})

    This has the drawback of not being animated. My solution could handle that. If not you can script in the css('display','table-row') somehow.

    -Clint

提交回复
热议问题