CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  JavaScript

关于web打印换页的问题

楼主beauty_beast(柳随风)2003-01-09 17:55:59 在 Web 开发 / JavaScript 提问

我的打印页面就是  
  <html>  
  <div>  
  <table>  
  ......  
  </table>  
  <table>  
  ......  
  </table>  
  <table>  
  ......  
  </table>  
  <br   style='page-break-after:always'>我在页面已加了换页符  
  但打印的时候不是在该处分页,请问这是麽回事?  
  <table>  
  ......  
  </table>  
  <table>  
  ......  
  </table>  
  很奇怪,谁能告诉我  
  问题点数:40、回复次数:5Top

1 楼net_lover(【孟子E章】)回复于 2003-01-09 18:02:52 得分 40

<p   style='page-break-after:always'>Top

2 楼net_lover(【孟子E章】)回复于 2003-01-09 18:05:19 得分 0

<html>  
  没有问题呀  
  <br   style='page-break-after:always'>  
  没有问题呀,   IE支持呀  
  Top

3 楼net_lover(【孟子E章】)回复于 2003-01-09 18:07:14 得分 0

低版本只可以   用在这些上面  
  BLOCKQUOTE,   BODY,   BUTTON,   CAPTION,   CENTER,   currentStyle,   DD,   DIR,   DIV,   DL,   DT,   FIELDSET,   FORM,   Hn,   ISINDEX,   LI,   LISTING,   MARQUEE,   MENU,   OL,   P,   PLAINTEXT,   PRE,   runtimeStyle,   style,   TABLE,   TBODY,   TFOOT,   TH,   THEAD,   TR,   UL,   XMPTop

4 楼beauty_beast(柳随风)回复于 2003-01-09 18:46:57 得分 0

我的是IE6.0,  
  <html>  
  <head>  
  <title></title>  
  </head>  
  <style>  
  .tdtitleleftbottom  
  {  
  BORDER-RIGHT:   white   thin   solid;  
  BORDER-BOTTOM:   white   thin   solid;  
  BORDER-TOP:   white   thin   solid;  
  BORDER-LEFT:   white   thin   solid;  
   
   
   
   
  }  
  </style>  
   
  <body   >  
   
  <div   id=up>  
     
   
   
  <table   width=300   height=180   style="top:30;left:30;position:absolute"   border=1   bordercolor="#000000"   cellspacing="0"   cellpadding="0">  
  <tr   valign=top>  
   
  <td   colspan=4   align=center   class=tdtitleleftbottom><font   size=3>&nbsp;</font></td>  
   
  </tr>  
  <tr   >  
   
  <td   colspan=4   align=center   class=tdtitleleftbottom><font   size=4><b>     工     作     证</b></font></td>  
   
  </tr>  
  <tr   height=5   ><td   colspan=4   class=tdtitleleftbottom>&nbsp;&nbsp;</td></tr>  
  <tr   >  
  <td   width=100   class=tdtitleleftbottom></td>  
  <td   align=right   nowrap   class=tdtitleleftbottom><font   size=2>   证&nbsp;   号:</font>   </td>  
  <td   align=left   nowrap   class=tdtitleleftbottom><font   size=3><b>23</b></font>   </td>  
  <td   class=tdtitleleftbottom></td>  
  </tr>  
  <tr   >  
  <td   width=100   class=tdtitleleftbottom></td>  
  <td   align=right   nowrap   class=tdtitleleftbottom><font   size=2>   姓&nbsp;   名:</font>   </td>  
  <td   align=left   nowrap   class=tdtitleleftbottom><font   size=3><b>423</b></font>   </td>  
  <td   class=tdtitleleftbottom></td>  
  </tr>  
  <tr   >  
  <td   width=100   class=tdtitleleftbottom></td>  
  <td   align=right   nowrap   class=tdtitleleftbottom><font   size=2>   有效期:</font>   </td>  
  <td   align=right   nowrap   colspan=2   class=tdtitleleftbottom>   <font   size=2><b>2003年01月08日起</b></font>   </td>  
  </tr>  
  <tr   >  
  <td   colspan=2   class=tdtitleleftbottom></td>  
  <td   align=right   nowrap   colspan=2   class=tdtitleleftbottom>   <font   size=2><b>2003年01月31日止</b></font>   </td>  
  </tr>  
  <tr   >  
  <td   colspan=4   valign=center   align=right   class=tdtitleleftbottom><font   size=2><b><font   size=2></b></td>  
   
  </tr>  
  </table>  
     
   
   
  <table   width=300   height=180   style="top:30;left:340;position:absolute"   border=1   bordercolor="#000000"   cellspacing="0"   cellpadding="0">  
  <tr   valign=top>  
   
  <td   colspan=4   align=center   class=tdtitleleftbottom><font   size=3>&nbsp;</font></td>  
   
  </tr>  
  <tr   >  
   
  <td   colspan=4   align=center   class=tdtitleleftbottom><font   size=4><b>     工     作     证</b></font></td>  
   
  </tr>  
  <tr   height=5   ><td   colspan=4   class=tdtitleleftbottom>&nbsp;&nbsp;</td></tr>  
  <tr   >  
  <td   width=100   class=tdtitleleftbottom></td>  
  <td   align=right   nowrap   class=tdtitleleftbottom><font   size=2>   证&nbsp;   号:</font>   </td>  
  <td   align=left   nowrap   class=tdtitleleftbottom><font   size=3><b>23</b></font>   </td>  
  <td   class=tdtitleleftbottom></td>  
  </tr>  
  <tr   >  
  <td   width=100   class=tdtitleleftbottom></td>  
  <td   align=right   nowrap   class=tdtitleleftbottom><font   size=2>   姓&nbsp;   名:</font>   </td>  
  <td   align=left   nowrap   class=tdtitleleftbottom><font   size=3><b>423</b></font>   </td>  
  <td   class=tdtitleleftbottom></td>  
  </tr>  
  <tr   >  
  <td   width=100   class=tdtitleleftbottom></td>  
  <td   align=right   nowrap   class=tdtitleleftbottom><font   size=2>   有效期:</font>   </td>  
  <td   align=right   nowrap   colspan=2   class=tdtitleleftbottom>   <font   size=2><b>2003年01月08日起</b></font>   </td>  
  </tr>  
  <tr   >  
  <td   colspan=2   class=tdtitleleftbottom></td>  
  <td   align=right   nowrap   colspan=2   class=tdtitleleftbottom>   <font   size=2><b>2003年01月31日止</b></font>   </td>  
  </tr>  
  <tr   >  
  <td   colspan=4   valign=center   align=right   class=tdtitleleftbottom><font   size=2><b><font   size=2></b></td>  
   
  </tr>  
  </table>  
     
   
   
  <table   width=300   height=180   style="top:230;left:30;position:absolute"   border=1   bordercolor="#000000"   cellspacing="0"   cellpadding="0">  
  <tr   valign=top>  
   
  <td   colspan=4   align=center   class=tdtitleleftbottom><font   size=3>&nbsp;</font></td>  
   
  </tr>  
  <tr   >  
   
  <td   colspan=4   align=center   class=tdtitleleftbottom><font   size=4><b>     工     作     证</b></font></td>  
   
  </tr>  
  <tr   height=5   ><td   colspan=4   class=tdtitleleftbottom>&nbsp;&nbsp;</td></tr>  
  <tr   >  
  <td   width=100   class=tdtitleleftbottom></td>  
  <td   align=right   nowrap   class=tdtitleleftbottom><font   size=2>   证&nbsp;   号:</font>   </td>  
  <td   align=left   nowrap   class=tdtitleleftbottom><font   size=3><b>23</b></font>   </td>  
  <td   class=tdtitleleftbottom></td>  
  </tr>  
  <tr   >  
  <td   width=100   class=tdtitleleftbottom></td>  
  <td   align=right   nowrap   class=tdtitleleftbottom><font   size=2>   姓&nbsp;   名:</font>   </td>  
  <td   align=left   nowrap   class=tdtitleleftbottom><font   size=3><b>423</b></font>   </td>  
  <td   class=tdtitleleftbottom></td>  
  </tr>  
  <tr   >  
  <td   width=100   class=tdtitleleftbottom></td>  
  <td   align=right   nowrap   class=tdtitleleftbottom><font   size=2>   有效期:</font>   </td>  
  <td   align=right   nowrap   colspan=2   class=tdtitleleftbottom>   <font   size=2><b>2003年01月08日起</b></font>   </td>  
  </tr>  
  <tr   >  
  <td   colspan=2   class=tdtitleleftbottom></td>  
  <td   align=right   nowrap   colspan=2   class=tdtitleleftbottom>   <font   size=2><b>2003年01月31日止</b></font>   </td>  
  </tr>  
  <tr   >  
  <td   colspan=4   valign=center   align=right   class=tdtitleleftbottom><font   size=2><b><font   size=2></b></td>  
   
  </tr>  
  </table>  
  Top

5 楼beauty_beast(柳随风)回复于 2003-01-09 18:50:17 得分 0

对不起,我知道可能错在哪儿了  
  不过还是谢谢你们Top

相关问题

  • 打印换页
  • web打印时强制换页,如何写代码
  • 怎样让打印换页
  • 打印换页问题
  • 字符串打印换页
  • 怎样让打印换页??
  • 急:C#打印怎么换页?
  • 如何在WinForm中换页打印?
  • 如何在程序中控制打印机换页?
  • 打印问题 很简单! 怎样控制换页?

关键词

  • 有效期
  • 2003年01月
  • 证
  • 31日止
  • 工作
  • 08日起
  • 姓名

得分解答快速导航

  • 帖主:beauty_beast
  • net_lover

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo