Div height:0px does not work?

后端 未结 10 1321
既然无缘
既然无缘 2020-12-05 04:42

Setting a div height to 0px does not seem to work.

The div expands to show it

10条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 04:51

    For me, on Windows 10, Firefox 58.0.1, it wouldn't hide completely unless using this:

    display: block !important;
    line-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    zoom: 1 !important;
    padding: 0 !important;
    margin-bottom: 0;
    border: none;
    

提交回复
热议问题