Window.print () has a horizontal scroll bar. I don't know why. Does anyone know?

as shown in the figure:

:

my css code is as follows:

@media print{
  .noprint{
    display:none;
  }
  -sharpmyPrint{
    display: block!important;
  }
  @page { size:  landscape; }
}

that is, I added an id attribute of myPrint to the table.

Aug.21,2021
After

, I figured out the problem with the table component style of iview. I have written a table, by myself. Is there any other better solution?

Menu