日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > HTML >内容正文

HTML

浏览器打印

發(fā)布時間:2024/5/15 HTML 68 豆豆
生活随笔 收集整理的這篇文章主要介紹了 浏览器打印 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
/*
?* 2004年12月21日
?* Author:longware< longware@126.com>
?* Usage:<script language="JavaScript" src="./ie6print.js"></script>
?* Note:瀏覽器需求IE6.0+,在HTTP頁面上打印必須將IE的安全級別降低.
?*/
document.writeln("<style>");
document.writeln(".btn{font-size:9pt;border-bottom:#cccccc 1px ridge;border-right:#cccccc 1px ridge;border-top:#ffffff 1px ridge;border-left:#ffffff 1px ridge;}");
document.writeln("</style>");
document.writeln("<style media=/"print/">");
document.writeln(".Noprint{display:none;}");
document.writeln(".PageNext{page-break-after: always;}");
document.writeln("</style>");
document.write("<scri");
document.write("pt language=/"JavaS");
document.write("cript/">");
document.writeln("function printSetup(){wb.execwb(8,1);}");
document.writeln("function printPreview(){wb.execwb(7,1);}");
document.writeln("function printNow(){if(confirm('您確定開始打印嗎?')){window.print();}}//wb.execwb(6,6);");
document.writeln("function printHelp(){alert(/"如果出現(xiàn)『該頁上的 ActiveX 控件不安全』的提示,請將瀏覽器『Internet選項』中的相關安全設置降低即可。/")}");
document.writeln("</script>");
document.writeln("<div class=/"Noprint/" align=/"right/">");
document.writeln("<br>");
document.writeln("<object classid=/"clsid:8856f961-340a-11d0-a96b-00c04fd705a2/" height=/"0/" width=/"0/" id=/"wb/" name=/"wb/"></object>");
document.writeln("<input type=/"button/" value=/"頁面設置/" class=/"btn/" οnclick=/"printSetup();/">&nbsp;");
document.writeln("<input type=/"button/" value=/"打印預覽/" class=/"btn/" οnclick=/"printPreview();/">&nbsp;");
document.writeln("<input type=/"button/" value=/"開始打印/" class=/"btn/" οnclick=/"printNow()/">&nbsp;");
document.writeln("<input type=/"button/" value=/"幫助/" class=/"btn/" οnclick=/"printHelp()/" style=/"cursor:help/">&nbsp;");
document.writeln("<input type=/"button/" value=/"關閉窗口/" class=/"btn/" οnclick=/"window.close()/">&nbsp;");
document.writeln("</div>");

總結

以上是生活随笔為你收集整理的浏览器打印的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內容還不錯,歡迎將生活随笔推薦給好友。