在整理了许多资料页面后,偶尔会遇到需要打印的需求,Drupal的标准模板Graland的page.tpl.php中已有相应的功能:
<style type="text/css" media="print"> @import “<?php print base_path() . path_to_theme() ?>/print.css”; </style>
表明在打印时会优先使用Print.css
后面就简单多了,Joe的作法是:
#header-region, #donate_search, #tabs-wrapper ul.tabs {display: none;}
还有其它多余的?呵呵,自己动手吧!