在Ie6.0有個打印預覽的功能,請問題在javascript中如何實現呢? 看看http://www.csdn.net/expert/topic/490/490686.xml?temp=.4091303 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 比如你有一个层中的内容要打印:<script> function print(){//加个参数就可以扩展到打印任何内容print(e){};var content=page.innerHTML;var newWindow = window.open('','','width=640,height=480,scrollbars');newWindow.document.write(content);newWindow.document.close();newWindow.print();}</script><div id=page ...>hello</div><input type=button value=print onclick=print()>//这只是我模拟打印预览的办法,可以再修饰和排版一下,只是模仿我喜欢这样:)祝你好运 js json 关于option的 在正则表达式中单行模式和多行模式有什么区别啊? 如何定时让内容一行一行输出来,而不是一下子就都出来 又是未定义错误!!! ■■高分请教:页面中调用window.showModalDialog函数的jsp页面,当页面内容修改时,不能体现修改,必须等应用服务器重新启动才能修改, 大家帮帮忙select的问题。 -----查找字符的问题---- ***iframe动态生成option***** 一段javascript,不太了解,请大家帮忙看看 請問怎樣自定義一個對象﹐并定義方法﹐屬性﹐怎樣調用 关于嵌入式页面的高度问题,求教,高分!!!!!
比如你有一个层中的内容要打印:
<script>
function print(){//加个参数就可以扩展到打印任何内容print(e){};
var content=page.innerHTML;
var newWindow = window.open('','','width=640,height=480,scrollbars');
newWindow.document.write(content);
newWindow.document.close();
newWindow.print();
}
</script>
<div id=page ...>hello</div>
<input type=button value=print onclick=print()>
//这只是我模拟打印预览的办法,可以再修饰和排版一下,只是模仿我喜欢这样:)祝你好运