Overflow: auto does not work in Firefox

前端 未结 2 1319
独厮守ぢ
独厮守ぢ 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:46

    this question from here maybe solve your problem

    nickb answer: "Try wrapping it in a

    . I'm pretty sure the overflow attribute is not defined for a element, at least in HTML4 it's not."

    try to put your overflow:auto to the wrapper hope this can help you

    pre, div {
        width:100%;
        overflow: auto !important;
    }
    

    working demo

提交回复
热议问题