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

IEÓëFireFoxµÄjsºÍcss (ÔÓ¼Ç)

png͸Ã÷ AlphaImageLoader
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=bEnabled,sizingMethod=sSize,src=sURL)
enabled£º¿ÉÑ¡Ïî¡£²¼¶ûÖµ(Boolean)¡£ÉèÖûò¼ìË÷Â˾µÊÇ·ñ¼¤»î¡£true£ºÄ¬ÈÏÖµ¡£Â˾µ¼¤»î¡£false£ºÂ˾µ±»½ûÖ¹¡£
sizingMethod£º¿ÉÑ¡Ïî¡£×Ö·û´®(String)¡£ÉèÖûò¼ìË÷Â˾µ×÷ÓõĶÔÏóµÄͼƬÔÚ¶ÔÏóÈÝÆ÷±ß½çÄÚµÄÏÔʾ·½Ê½¡£crop£º¼ôÇÐͼƬÒÔÊÊÓ¦¶ÔÏó³ß´ç¡£image£ºÄ¬ÈÏÖµ¡£Ôö´ó»ò¼õС¶ÔÏóµÄ³ß´ç±ß½çÒÔÊÊӦͼƬµÄ³ß´ç¡£scale£ºËõ·ÅͼƬÒÔÊÊÓ¦¶ÔÏóµÄ³ß´ç±ß½ç¡£
src£º±ØÑ¡Ïî¡£×Ö·û´®(String)¡£Ê¹Óþø¶Ô»òÏà¶Ô url µØÖ·Ö¸¶¨±³¾°Í¼Ïñ¡£¼ÙÈçºöÂԴ˲ÎÊý£¬Â˾µ½«²»»á×÷Óá£
½ûֹѡȡÍøÒ³ÄÚÈÝ
ÔÚIEÖÐÒ»°ãÓÃjs£ºobj.onselectstart=function(){return false;}
¶øfirefoxÓÃCSS:-moz-user-select:none
Â˾µµÄÖ§³Ö(Àý£ºÍ¸Ã÷Â˾µ)
IE:filter£ºalpha(opacity=10);
firefox£º-moz-opacity:.10;
²¶»ñʼþ
IE£ºobj.setCapture() ¡¢obj.releaseCapture()
Firefox£ºdocument.addEventListener(”mousemove”,mousemovefunction,true);
document.removeEventListener(”mousemove”,mousemovefunction,true);
»ñÈ¡Êó±êλÖÃ
IE:event.clientX¡¢event.clientY
firefox£ºÐèҪʼþº¯Êý´«µÝʼþ¶ÔÏó
obj.onmousemove=function(ev){
X= ev.pageX;Y=ev.pageY;
}
DIVµÈÔªËصı߽çÎÊÌâ
±ÈÈ磺ÉèÖÃÒ»¸ödivµÄCSS:£º{width:100px;height:100px;border:#000000 1px solid;}
IEÖУºdivµÄ¿í¶È£¨°üÀ¨±ß¿ò¿í¶È£©£º100px£¬divµÄ¸ß¶È£¨°üÀ¨±ß¿ò¿í¶È£©£º100px£»
¶øfirefox£ºdivµÄ¿í¶È£¨°üÀ¨±ß¿ò¿í¶È£©£º102px£¬divµÄ¸ß¶È£¨°üÀ¨±ß¿ò¿í¶È£©£º102px£»
ÅжÏä¯ÀÀÆ÷ÀàÐÍ
var isIE=document.all ? true : false;
ÎÒдÁËÒ»¸ö±äÁ¿£¬Èç¹ûÖ§³Ödocument.allÓï·¨ÄÇôisIE=true£¬·ñÔòisIE=false
ÔÚ²»Í¬ä¯ÀÀÆ÷ϵÄCSS´¦Àí
Ò»°ã¿ÉÒÔÓÃ!importantÀ´ÓÅÏÈʹÓÃcssÓï¾ä£¨½öfirefoxÖ§³Ö£©
±ÈÈ磺{border-width:0px!important;border-width:1px;}
ÔÚfirefoxÏÂÕâ¸öÔªËØÊÇûÓб߿òµÄ£¬ÔÚIEϱ߿ò¿í¶ÈÊÇ1px
document.formName.item(”itemName”) ÎÊÌâ
ÎÊÌâ˵Ã÷£ºIEÏ£¬¿ÉÒÔʹÓà document.formName.item(”itemName”) »ò document.formName.elements ["elementName"]£»FirefoxÏ£¬Ö»ÄÜʹÓÃdocument.formName.elements["elementName"]¡£
½â¾ö·½·¨£ºÍ³Ò»Ê¹ÓÃdocument.formName.elements["elementName"]¡£
¼¯ºÏÀà¶ÔÏóÎ


Ïà¹ØÎĵµ£º

dz̸cssÖÐͼƬ¶¨Î»Ö®ËùÓÐͼ±ê·ÅÔÚÒ»ÕÅͼÉÏ

http://www.qiqiboy.com/2009/11/26/css-image-orientation-and-all-images-in-a-picture.html
     Èç½ñ×öÍøҳΪÁËʹÍøÕ¾·á¸»¶à²Ê£¬¸»ÓÚ±íÏÖÁ¦£¬ÍùÍùÐèÒªÓ¦ÓôóÁ¿µÄͼƬ/ͼ±ê¡£ÈçºÎ´¦ÀíÕâЩͼƬ£¬Ê¹Æ価Á¿²»Ó°ÏìÍøÒ³ÔØÈ룬½âÎöµÈËٶȣ¬ÊÇÒ»¸ö²»´ó²»Ð¡µÄÎÊÌâ¡£Èç¹ûÄãµÄÍøÕ¾Óø÷ÖÖͼ±êͼ°¸×°ÊεÄö¦ÀöÎÞ ......

³¹µ×Ū¶®CSSºÐ×Óģʽ(DIV+CSS)

³¹µ×Ū¶®CSSºÐ×Óģʽ(DIV+CSS)
·Ç³£ºÃµÄDIV²¼¾ÖÔ­ÀíÓëʵÀý½Ì³Ì,¶ÔWEB±ê×¼²¼¾ÖÓÐÐËȤµÄÅóÓÑ¿ÉÒÔ¿´¿´ÒÔÏÂÄÚÈÝ:
Web±ê×¼,³¹µ×Ū¶®CSSºÐ×Óģʽһ:DIV²¼¾Ö¿ìËÙÈëÃÅ
Web±ê×¼,³¹µ×Ū¶®CSSºÐ×Óģʽ¶þ:µ¼º½À¸ÊµÀýÏê½â
Web±ê×¼,³¹µ×Ū¶®CSSºÐ×ÓģʽÈý:¸¡¶¯µÄ±íÑݺÍÇå³ýµÄ×ÔÊö[1]
Web±ê×¼,³¹µ×Ū¶®CSSºÐ×ÓģʽÈý:¸¡¶¯µÄ±íÑݺÍÇå³ý ......

×îÈ«µÄCSSä¯ÀÀÆ÷¼æÈÝÎÊÌâ

CSS¶Ôä¯ÀÀÆ÷µÄ¼æÈÝÐÔÓÐʱÈÃÈ˺ÜÍ·ÌÛ,»òÐíµ±ÄãÁ˽⵱Öеļ¼ÇɸúÔ­Àí,¾Í»á¾õµÃÒ²²»ÊÇÄÑÊÂ,´ÓÍøÉÏÊÕ¼¯ÁËIE7,6ÓëFireofxµÄ¼æÈÝÐÔ´¦Àí·½·¨²¢ÕûÀíÁËÒ»ÏÂ.¶ÔÓÚweb2.0µÄ¹ý¶È,Ç뾡Á¿ÓÃxhtml¸ñʽд´úÂë,¶øÇÒDOCTYPE Ó°Ïì CSS ´¦Àí,×÷ΪW3CµÄ±ê×¼,Ò»¶¨Òª¼Ó DOCTYPEÉùÃû.
 
CSS¼¼ÇÉ
1.divµÄ´¹Ö±¾ÓÖÐÎÊÌâ
vertical-align:middl ......

ÀûÓÃCSSÀ´É趨´òӡЧ¹û

1.ÔÚÒ³ÃæHEADÖÐÒýÈëÒ»¸öÌØÊâµÄCSS
<link rel="stylesheet" type="text/css" href="${contextPath}/styles/print.css" media="print" />
2.ÔÚprint.cssÖÐͨ¹ý½«Ò³ÃæÖÐÏÔʾµÄÇøÓòDISPLAYÉèÖÃΪNONE,´òÓ¡ÇøÓòÉ趨DISPLAYΪBLOCK
ÁíÍâ¿ÉÒÔ¼ÓÈëÒ»¸öÌØÊâµÄCSSÀ´¿ØÖÆ·ÖҳЧ¹û
. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ