请问用javascript控制的滤镜效果(将图片转向90度),为什么不能用打印机打印出来
我现在有这么一个需求,就是把一个很宽的table表格翻转90度然后打印出来,
我现在用javascript控制滤镜翻转没有问题,可是打印到打印机上还是没有翻转的效果,
请高手帮忙看看那。谢谢了!下面是功能事例代码
<div style="position:relative; width:438px; height:438px; background-color:#F4F4F4;">
<div id="wc" style="position:absolute; left:119px; top:73px; width:200px; height:292px;">
<img src="http://www.cnblogs.com/images/cnblogs_com/wentomi/Untitled-2.jpg">
</div>
</div>
<script type="text/javascript">
var Revolve = {
object : null
, init : function (o, w) {
this.object = o;
this.width = w;
o.style.filter = "progid:DXImageTransform.Microsoft.Matrix()";
//设置滤镜的属性值
o.filters.item("DXImageTransform.Microsoft.Matrix").SizingMethod = "auto expand";
o.filters.item("DXImageTransform.Microsoft.Matrix").FilterType = "bilinear";
}
, revolve : function (n, f) {
var o = this.object, r, sin, cos;
n = (n + f) % 360;
r = n / (360 / (Math.PI * 2));
sin = Math.sin(r), cos = Math.cos(r);
with (o.filters.item("DXImageTransform.Microsoft.Matrix")) {
M11 = 0, M12 = -1, M21 = 1, M22 = 0;
}
with (o.style) {
left = this.width / 2 - o.offsetWidth / 2;
top = this.width / 2 - o.offsetHeight / 2;
}
return n;
}
};
window.onload = function () {
if (!/MSIE/.test(window.navigator.userAgent)) return;
var o = document.getElementById("wc"), n = 0;
Revolve.init(o, 438);
Revolve.revolve(n,90);
};
</script>