Drupal打印模块-忽略打印代码


Drupal print module - ignore code for print

我想要一种方法来忽略打印的部分代码。应该在模块中可见,但在PDF输出中不应该可见。有什么帮助吗?

如果使用dompdf,只需为"打印"媒体类型添加css规则

http://www.w3.org/TR/CSS2/media.html