How to print only popup

Using our custom Drupal module to display tabular information displayed through a different kind of server (therefore it is not saved in drupal db).

Users click on a position in this table that brings up a shadow pop-up window containing this position. We use the popips api function call to achieve this:

popups_add_popups()

Unfortunately, printing prints everything, including canceling the usual print css, so as not to print the logo. A window with a gray window and a popup window will open.

We want to include the obvious printer icon in the pop-up window, and when users click the icon for the print pop-up only. A.

I have seen

@media print {
  .noprint {
    display:none
  }
}

, css. , .

, stackoverflow. .

+3
1

, ​​, jQuery, - - , , , <div>, . (, , ).

, , , , jPrintArea:

jPrintArea - jquery .

!

+1

Source: https://habr.com/ru/post/1724553/


All Articles