×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

仔细学习CSS2

<style ype="text/css">
@media print {

div.noprint {
display: none;
}

}
</style>
... ...

<div class="noprint">
不想打印的东西<img src="xxx" alt="不想打印的图片">
</div>
Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / 问一个HTML/JavaScript 问题.怎么能使一些文字或图象显示出来但不被打印.多谢
    • 在打印之前Hide这些图象
      • 你是说,打印时在选项里处理.我想在编程时解决这个问题.多谢.
    • 仔细学习CSS2
      <style ype="text/css">
      @media print {

      div.noprint {
      display: none;
      }

      }
      </style>
      ... ...

      <div class="noprint">
      不想打印的东西<img src="xxx" alt="不想打印的图片">
      </div>
      • That's wonderful.多谢你的帮助.
      • View Source - copy and paste to an editor - remove those tags - save as html file - open from IE - Print, :-).