How to print scrollable DIV content

前端 未结 5 1760
鱼传尺愫
鱼传尺愫 2020-12-16 14:44

There is a website that I would like to print the div content of. The problem is that the div is scrollable and I\'m not able to print all the content. I\'ve tr

5条回答
  •  有刺的猬
    2020-12-16 15:25

    I'm not sure what website you're using - but in IE you can open up F12 Developer tools, find the div you want to display, and modify the style on the fly:

    {
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    }
    

    It would then cause the div to display all it's content, without scrollbars... hopefully this helps!

提交回复
热议问题