Overflow: auto does not work in Firefox

前端 未结 2 1292
独厮守ぢ
独厮守ぢ 2021-01-12 04:48

I have a table. Its have overflow: auto.

The width is set to be 100px. In Firefox only, text that exceeds 100p

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-12 05:44

    The easier way to do this would be to add this to the Html

    
        
    Don ovonMrLongNameIsMe!!!

    and this to the CSS

    div {
        overflow:auto;    
    }
    
    td {
        border: 1px solid rgb(0,0,0);
        min-width: 100px;
        max-width: 100px;
    }
    

    Working Example:

        div {
            overflow:auto;    
        }
    
        td {
            border: 1px solid rgb(0,0,0);
            min-width: 100px;
            max-width: 100px;
        }
    Don ovonMrLongNameIsMe!!!

提交回复
热议问题