<pre> tag is cutting half in print view

时间:2018-09-18 08:48:27

标签: printing pre

I have a pre tag in my code which is coming dynamically. The text in pre tag is cutting into half at the end of the page in print version. It is working fine if I use other tags like P or Div instead of PRE. Can anybody help me out?

1 个答案:

答案 0 :(得分:0)

您将要为“ PRE”添加样式,例如:

<style>
    PRE {
        white-space: normal;
    }
</style>