点此打印代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css" media=print>
.noprint {
    display : none
}
</style>
</head>
<script language=javascript> 
  function printsetup(){ 
  // 打印页面设置 
  wb.execwb(8,1); 
  } 
  function printpreview(){ 
  // 打印页面预览 
     
  wb.execwb(7,1); 
      
     
  } 

  function printit() 
  { 
  if (confirm('确定打印吗?')) { 
  wb.execwb(6,6) 
  } 
  } 
  </script>
</head>
<body>
<div align=center>
  <p>
    <object id=wb height=0 width=0 classid=clsid:8856f961-340a-11d0-a96b-00c04fd705a2 name=wb></object>
    打印内容开始: </p>
  <p> many people have asked about the meaning of our name. &quot;baidu&quot; was inspired by a    poem written more than 800 years ago during the song dynasty. the poem compares    the search for a retreating beauty amid chaotic glamour with the search for    one's dream while confronted by life's many obstacles. &quot;…hundreds and thousands    of times, for her i searched in chaos, suddenly, i turned by chance, to where    the lights were waning, and there she stood.&quot; baidu, whose literal meaning is    hundreds of times, represents persistent search for the ideal.</p>
  <p>打印的内容结束<br />
  </p>
  <p class="noprint"><!--class="noprint"的作用是标示不需要打印的地方-->
    <input οnclick=javascript:printit() type=button value=打印 name=button_print />
    <input οnclick=javascript:printsetup(); type=button value=打印页面设置 name=button_setup />
    <input οnclick=javascript:printpreview(); type=button value=打印预览 name=button_show />
  </p>
</div>
</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值