Internet Explorer 8(IE 8)。打印预览无法正常工作。 [英] Internet Explorer 8 (IE 8). Print Preview not working fine.

查看:130
本文介绍了Internet Explorer 8(IE 8)。打印预览无法正常工作。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

b


  我在IE 8中遇到问题。在IE 8中,打印预览与其他浏览器(IE 7)相比无法正常工作。我通过javascript(window.print())调用print。我完成了以下打印步骤:



  1)。拍摄的div id对象



  2)打开新窗口并将代码写入新窗口(因为我只需要使用div id打印我的网页的特定部分)



  3)我关闭后写文件并打电话给window.print()mehtod



  4)在预览中显示,在IE 7中预览不错,但IE 8预览不好,因为它遗漏了一些文字。




现在我正在使用Windows XP SP2。但我除了通过代码(如jsp,CSS,java文件,像这样的JavaScript)我怎么能纠正这个问题。你能帮忙解决这个问题吗

解决方案

你好,


你的docment.write字符串可能被错误地转义了。 ..没有链接到你的网站我们只是猜测。


哦,你是一个jsp开发者......这肯定是...你正在使用document.write一个xhtml doctype。尝试通过Tidy HTML验证器扩展程序运行您的页面并更正所有"不能/不在这里"文档中的警告写入语句。
javascript中有特殊字符的引用,需要在w3schools网站上进行转义。


你是否在为脚本使用tomcat服务器?...你有一个很多工作要做。您在响应标头中使用了哪些内容类型?只需回复网站地址即可。


我们可以读取代码,但心理阅读笑话会失败。


问候。


Hi,

   I having problem in IE 8. In IE 8 print preview is not working fine with compare with other browser( IE 7). I call the print through javascript (window.print()). I done following steps to print:

  1). Taken div id object

  2) Open the new window and write the code into the new window(because i need to print particular part of my web page for that purpose only i used div id)

  3) after the i closed write document and call the window.print() mehtod

  4) In that preview is shown, In IE 7 preview good, But IE 8 preview not good because it missing some text.


Right now i am using windows XP SP2. but i excepting through code (like jsp, CSS, java file, javascript like this )how i can rectify this problem. Can you help to solve this problem

解决方案

Hi,

Probably your docment.write strings are incorrectly escaped... without a link to your web site we are only guessing though.

Oh, you are a jsp developer... that is definately it... you are using document.write with a xhtml doctype. Try running your page through the Tidy HTML validator extension and correcting all the "cannot have / here" warnings in your document write statements. There is a reference of special characters in javascript that need to be escaped at the w3schools site.

Are you using a tomcat server for your scripts?... you have a lot of work to do. What content-type are you using in the response headers? Just post back with the web site address.

We can read code but fail miserably with the mind reading joke.

Regards.


这篇关于Internet Explorer 8(IE 8)。打印预览无法正常工作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆