How to stop table from resizing when contents grow?

前端 未结 6 1914
遥遥无期
遥遥无期 2020-12-09 01:53

I have a table, the cells of which are filled with pictures. I would like the pictures to grow larger when you hover over them and I would like the cells of the

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-09 02:28

    Use min-width in your cells, look an example here

    .cell1{
    display:table-cell;
    width:100px;
    min-width:100px;
    border: 2px dashed #40f;    
    }
    

    http://jsfiddle.net/Gueorguip13/avzuadhp/3/

提交回复
热议问题