var the = window.open("about_blank")
the.document.write("<div style="filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=90)"></div>")
the.document.write("<div style="filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=90)"></div>")
解决方案 »
- js内容显示在DIV里面,帮帮忙!!!
- 请教下在firefox里的onmouseover事件该如何写
- javascript中table的某一行选中问题
- |zyciis| 为什么 onkeydown="SetFocus(event,'txtManagerPass')" 我的js无效
- 关于attchEvent~~~~~~~~~~~
- jscript 如何控制web控件的onmousemove事件
- 上下框架执行js和赋值的问题
- select的已选代码是什么啊?
- 请教一个innerhtml的问题,急,帮忙!!!!!!
- 怎样实现这样的数,急!!!!!!!!分不够再加
- 输入问题?
- 页面中有MSCOMCTL.OCX里的ListView控件,在某些机器上body 的onload执行会出错?
document.body.style.filter="progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";//rotation=1或者3
window.print();
document.body.style.filter="";
}
大概是这个样子,没有试过,
可能用document.body效果不好,用最外层的div对象试试吧
还有个问题:我改成纵向打的时候,A4纸,只有一半的地方打印出来了,另一半空着没打,结果内容也就没打完,怎么回事啊??
PS:怎么用javascript代码将页面页眉页脚清掉,不打印出来啊???
万分感谢!!!!
然后用document.getElementById("div_id").style.filter操作可以看看:http://community.csdn.net/Expert/TopicView.asp?id=5031670