Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÍøÒ³´òÓ¡javascript:window.print()

 
ÔÚ×öB/SÏîÄ¿¿ª·¢Ê±¡£ÄÑÃâ»áÓöµ½ÍøÒ³´òÓ¡ÎÊÌ⣡
±¾ÈËÔÚÍøÂçÉÏËѼ¯ µÄһЩ×ÊÁϹ° ´ó¼ÒʹÓã¡yzitw.com ¡íÍøÂç½£¿Í→ ËѼ¯
¿ÉÒÔÓÃcss¿ØÖÆ£¬¿´ÃÏÀÏ´óдµÄ¡£
@media print
.a {display:block}
.b {display:hidden}
ºÃÏñÊÇÕâÑù¡£°ÑÄã²»Ïë´òÓ¡µÄ²¿·ÖclassÉèΪb
Ê×ÏÈÔÚÍøÒ³ÖÐÌí¼Ó£º
      <OBJECT id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"
       VIEWASTEXT>
      </OBJECT>
È»ºó¾Í¿ÉÒÔÒÀ´Î¼ÓÈ빦ÄÜ°´Å¥ÁË£º
<input onclick="document.all.WebBrowser.ExecWB(6,1)" type="button" value="´òÓ¡"> <input onclick="document.all.WebBrowser.ExecWB(6,6)" type="button" value="Ö±½Ó´òÓ¡">
      <input onclick="document.all.WebBrowser.ExecWB(8,1)" type="button" value="Ò³ÃæÉèÖÃ">
      <input onclick="document.all.WebBrowser.ExecWB(7,1)" type="button" value="´òÓ¡Ô¤ÀÀ">&nbsp;<INPUT type="button" value="¹Ø±Õ´°¿Ú" onclick="javascript:window.close()">
½«ÕâÁ½¿é¶«Î÷·Åµ½<center class=noprint></center>¾Í²»»á´òÓ¡ÕâЩ°´Å¥ÁË¡£µ±È»Òª¶¨ÒånoprintÁË£º
<style media="print">.Noprint { DISPLAY: none }</style>Ö»Òª°Ñ²»Ïë´òÓ¡µÄ¶«Î÷µÄcssÉèÖóÉnoprint¾Í¿ÉÒÔÁË¡£
ÏÖÔÚ¾ÍʵÏÖÁË»ù±¾µÄweb´òÓ¡£¬ÐèҪעÒâµÄÇé¿öÈçÏ£º
±ØÐ뽫ieµÄinternetÑ¡ÏîµÄ°²È«ÉèÖÃÖжÔÓÚûÓбê¼ÇΪ°²È«µÄActiveX¿Ø¼þ½øÐÐ...ÉèÖóÉÌáʾ»òÕßÆôÓ㬷ñÔò»á±¨´í£¬µ¼Ö²»¿ÉÓá£
Èç¹ûÔÚvs.net±à¼­»·¾³Ï±༭¸ÃÒ³Ã棬Ëü¾­³£×Ô¶¯µÄ¸øobjectÌí¼Ó¶àÓàµÄ²ÎÊý£¬ÓÐÁËÕâЩ¶«Î÷£¬´òÓ¡¾Í»á³ö´í£¬ËùÒÔÒª¼ÇµÃ×îºó±£´æµÄʱºòɾ³ýËüÃÇ¡£
ΪÁ˼ò±ã²¢ÇÒ´ïµ½×îºÃµÄЧ¹û£¬ÎÒÃÇ¿ÉÒÔÔÚÒ»¸öÒ³ÃæʵÏֱ༭ºÍ´òÓ¡£¬Õâʱºò»áÐèÒªºÜ¶àµÄtextbox£¬ÎÒÃÇ°ÑËüµÄcssÉèÖóÉ.edittext
{
overflow-y:visible;
width: 100%;
border-top: none;
border-right: none;
border-bottom: none;
border-left: none;
}¾Í¿ÉÒÔʵÏÖÔÚ´òÓ¡µÄʱºò²»ÏÔʾ±ß¿òºÍmultilineµÄtextbox²»ÏÔʾ¹ö¶¯ÌõÁË¡£
»¹ÓÐһЩС¾­Ñé¾ÍÊÇÔÚÉèÖñê¸ñ¿í¶ÈµÄʱºò£¬¶ÔÓÚA4Ö½ÕÅ£¬ºá´òÓÃ920£¬Êú´òÓÃ640£¬Ð§¹û×îºÃ¡£
ÏàÐÅÓÃB/S·½Ê½×ö¹ýÓ¦ÓõÄÈ


Ïà¹ØÎĵµ£º

JavaScriptÃæÏò¶ÔÏó³ÌÐòÉè¼Æ(4): º¯Êý

 ÔںܶàÓïÑÔÖУ¬º¯Êý(JavaÀïÃæ³ÉΪ·½·¨)ºÍ¶ÔÏóʱ½ØÈ»²»Í¬µÄÁ½ÖÖ¶«Î÷¡£º¯Êý±»¶¨ÒåΪ¶ÔÏóµÄ¶¯×÷£¬»òÕßÊÇÈ«¾ÖµÄ(ÏñÔÚC++ÖеÄmainº¯ÊýÒ»Ñù)¡£µ«ÊÇÔÚJavaScriptÖУ¬º¯ÊýºÍ¶ÔÏóµÄ½çÏÞÈ´ÏԵò»ÄÇôÃ÷ÏÔ¡£
1. º¯ÊýµÄ¶¨Òå
JavaScriptÖÐÓкܶàÖÖ¶¨Ò庯ÊýµÄ·½·¨£º
Js´úÂë
function hello() { alert("Hello!"); }
var hello1 ......

JavaScriptÓï·¨¼¯½õ£¨¶þ£©

function function xx(){...} ¶¨Ò庯Êý
isNumeric                   ÅжÏÊÇ·ñÊÇÊý×Ö
innerHTML xx=¶ÔÏó.innerHTML ÊäÈëij¶ÔÏó±êÇ©ÖеÄhtmlÔ´´úÂë
innerText divid.innerText=xx ½«ÒÔdiv¶¨Î»ÒÔidÃüÃûµÄ¶ÔÏóÖµÉèΪXX
locati ......

javascriptÖÐparseIntº¯Êý

×¢£ºÔÚÏîÄ¿ÖÐÓöµ½ÀàËƵÄÎÊÌ⣬ͨ¹ýÍøÂç½â¾öÎÊÌâ¡£
parseInt("07") ·µ»Ø¶àÉÙ ?
parseInt("08") ÓÖ·µ»Ø¶àÉÙ ?
ÕýÈ·´ð°¸£º
parseInt("07") ·µ»Ø8
parseInt("08") ·µ»Ø0
ÓÃjavascriptµÄparseIntº¯Êýʱ£¬parseInt("08")»òÕßparseInt("09")·µ»ØµÄ¾ÓÈ»ÊÇ0£¬¶øparseInt("01")...parseInt("07")¶¼ÊÇÕýÈ·µÄ¡£
ΪʲôÕâÑùÄØ£¿
......

JavaScriptÖض¨Ïò

ʹÓÃJavaScript¿ÉÒÔ½«Óû§µ¼ÏòÒ»¸öÌض¨µÄµØÖ·£¬²¢ÇÒ²»Í¬µÄ·½·¨»á¶Ôä¯ÀÀÆ÷µÄÀúÊ·¼Ç¼Óв»Í¬µÄÓ°Ïì¡£
ʵÀýJavaScript´úÂë
±¾Àý¶¨ÒåÁËÁ½¸öJavaScriptº¯Êý£¬¹¦Äܶ¼ÊÇÖض¨Ïòµ½Ê×Ò³£¬µ«ÊǵÚÒ»¸öº¯Êý²ÉÓõÄÊÇÖ±½Ó¸øhref¸³ÖµµÄ·½Ê½£¬µÚ¶þ¸öʹÓõÄÊÇreplace·½·¨¡£¾ßÌåÇë¿´ÏÂÃæµÄ´úÂ룺
<script type="text/javascript"> fun ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ