IE8 Printing website zoomed in

荒凉一梦 提交于 2019-12-11 08:17:04

问题


I'm having a particularly fun issue with IE8.

The website prints fine in firefox, chrome, ie9, but when printed from IE8, the page is about 50% larger than it should be, causing the right side to be cut off.

This can be solved by scaling down the zoom from the print preview to 70%, but the client isn't satisfied with this solution.

I haven't had any luck finding much info, or similar problems via google and SO.

Does anyone have any suggestions for me?

It's also hard to troubleshoot printing from IE8 when you're working on a mac :( (client brought up the issue).

Any help would be greatly appreciated!

Thanks


回答1:


I was having the same problem (only with IE8) and realized that IE8 seemed to be zooming based on the width of the first div it encountered. In my case, the first div was 456px wide, while the second was 920px. The second div was therefore cut off on the right.

My solution was to add an empty div (920px wide, 1px high) before all others. That fixed the problem.




回答2:


you need to make a special css or query to IE8, it's normal.



来源:https://stackoverflow.com/questions/13163321/ie8-printing-website-zoomed-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!