IE 7& 8打印时jqplot不对齐 [英] IE 7 & 8 jqplot misalignment while printing

查看:150
本文介绍了IE 7& 8打印时jqplot不对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些麻烦获取使用jqplot创建的图表打印与IE 7&它在屏幕上看起来不错,但是一旦我点击打印预览,就会弄乱了。

I am having some trouble getting the graph created with jqplot to print with proper alignment in IE 7 & 8. It looks great on the screen, but once I click print preview it get's all messed up.

帮助我

在IE 9中,Firefox和Chrome是完美的。任何帮助将非常感谢。

Alignment in IE 9, Firefox and Chrome is perfect. Any help would be greatly appreciated

推荐答案

这是修改过的软件: http://pastebin.com/mgHUbe3S

第309行是魔法发生的地方

Line 309 is where the magic happens

    var el = surfaceElement.ownerDocument.createElement('div');
    **el.className = "seriesContainer_"+counter;**
    el.style.width =  surfaceElement.clientWidth + 'px';
    el.style.height = surfaceElement.clientHeight + 'px';
    el.style.overflow = 'hidden';
    el.style.position = 'absolute';
    surfaceElement.appendChild(el);

    this.element_ = el;
    this.arcScaleX_ = 1;
    this.arcScaleY_ = 1;
    this.lineScale_ = 1;
    counter++;
  }

这篇关于IE 7& 8打印时jqplot不对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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