How can I make the contents of a table cell overflow vertically without also expanding the table cells height?

后端 未结 2 770
清歌不尽
清歌不尽 2021-02-08 05:36

I have a table cell with a div inside. I want the div to overflow outside of the table cell. How can I make this happen? To be clear, I don\'t want the

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-08 05:54

    If I get you right, this might help:

    .row {
      height: 24px;
      overflow: visible;
    }
    
    .cell {
      overflow: visible;
      max-height: 24px !important;
      border: 1px solid #cccccc;
      width: 10px;
    }
    
    .overflow {
      height: 24px;
      font-size: 12px;
      line-height: 16px;
      position: absolute;
    }
    Overlow outside of this cell

提交回复
热议问题