Home  >  Q&A  >  body text

css - 怎么让table出现横向滚动条?

需要table横向超出显示滚动条 但是 它就是横向超出直接挤压左边的td

大家讲道理大家讲道理2743 days ago1119

reply all(3)I'll reply

  • 黄舟

    黄舟2017-04-17 14:53:31

    I have solved it myself. Set the table style: table-layout:fixed

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 14:53:31

    Wrap the table with a block element. The width of the block element is fixed and the horizontal overflow is auto

    reply
    0
  • 阿神

    阿神2017-04-17 14:53:31

    Does the parent container have a fixed width?

    reply
    0
  • Cancelreply