CSSÔÚMyEclipseÏÂÎÞ·¨ÔØÈëÎÊÌâ¡£
ÔÚJSPÒ³ÃæÉϼÓÈë
<%String path = request.getContextPath();%>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css">
ÏÂÁз½Ê½Ã²ËƲ»ÐУº
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="../../css/style.css" rel="stylesheet" type="text/css">
Ïà¹ØÎĵµ£º
·½·¨Ò»£º
¿çä¯ÀÀÆ÷µÄÍøÒ³Éè¼ÆÒ»Ö±ÊÇÈÃÈ˺ÜÍ·ÌÛµÄÎÊÌ⣬Õâ²»Ö»ÊÇÒòΪä¯ÀÀÆ÷µÄ°æ±¾Öڶ࣬»¹ÓÐÒ»¸öÖØÒªµÄÔÒòÊÇÏàͬä¯ÀÀÆ÷µÄ²»Í¬Ê±Æڵİ汾Ҳ»áÓвîÒ죬
ÉõÖÁÊÇÔÚ²»Í¬²Ù×÷̨ͬÉÏ»¹»áÓв»Í¬¡£Òò´ËʹCSS hack¼¼Êõ½øÐÐä¯ÀÀÆ÷Çø·ÖÊÇʵÏÖ¿çä¯ÀÀÆ÷·ÃÎÊÒ»¸öºÃ·½·¨¡£CSS
Hack¼¼ÊõÓкܶ࣬¾ßÌå¿ÉÒԲ鿴£º
± ......
overflow´Ó×ÖÃæÒâÒåÉÏÀ´½²¾ÍÊÇÒç³öµÄÒâ˼唄£¬»»¾ä»°Ëµ£¬ÄãÓиö²ã£¬µ«ÊÇÀïÃæµÄÄÚÈÝ£¬Í¼Æ¬»òÕßÎÄ×ÖÒª±È²ã´ó£¬overflow¾ÍÊÇÕë¶ÔÕâÖÖÇé¿ö½øÐд¦ÀíµÄ¡£
°üº¬4¸öÊôÐÔÖµ£¬visible,hidden,auto,scroll
visible¾ÍÊdz¬³öµÄÄÚÈÝÈÔÈ»Õý³£±»ÏÔʾ³öÀ´¡£
hidden¾ÍÊdz¬³öµÄÄÚÈݱ»Òþ² ......
<body style="background-color:#000" mce_style="background-color:#000">
<div style="background-color:#fff; width:500px; height:200px; filter:alpha(opacity='50'); opacity:0.5">Õâ¸ö±³¾°ÊÇ͸Ã÷µÄ</div>
</body>
/*IE*/
filter:alpha(opacity='50');
/*FF*/   ......
´ËÎÄΪÍøÉÏÊÕ¼¯~
¸ø¿Í»§×öÕ¾µÄʱºòÓöµ½µÄÎÊÌâ,div²ã¼ÓÁËmarginºó ×Ü¿í¶È³¬¹ý¸¸¼¶²ã¿í¶È ¾Í×Ô¶¯»»ÐÐÁË ÈçºÎÈø¡¶¯²ã¼Ómarginºó²»»»ÐÐÄØ?
ÏÂÃæ¿´¸¡¶¯²ã¼Ómarginºó»»ÐеÄÀý×Ó:
±ÈÈç˵ÓиöDIV¿í¶ÈΪ380px£¬ËüÀïÃæÓÐÒ»¸ö²Ëµ¥ÁÐ±í£¬Ã¿¸ö¿í¶ÈΪ60px£¬margin-rightΪ20px¡£Èç¹û¾Í°´ÕÕÏÂÃæµÄHTML½á¹¹À´×öµÄ»°£¬ÄÇôÕâ¸ö²Ëµ¥ÁбíÄÜ ......
ת·¢Ï£¬Í¬ÊÂ×ܽáµÄ¡£
ä¯ÀÀÆ÷´óÕ½µÄ½á¹ûÔø¾Ò»¶ÈÊÇIEһͳÌìÏ£¬ÔÚÄǸöʱ´ú£¬ÎÒÃǸù±¾²»Óõ£ÐÄä¯ÀÀÆ÷¼æÈÝÐÔÎÊÌ⣬ÓÃPS×Ô¶¯Éú³É´úÂ붼ÐС£È»¶ø°éËæʱ´ú·¢Õ¹£¬ÈËÃǶÔWEBÓ¦ÓõÄÆÚÍûÔ½À´Ô½¸ß£¬ÓÚÊǺõ£¬½ºþ·éÑÌÔÙÆ𣬸÷ÖÖä¯ÀÀÆ÷ÈçÓêºó´ºËñ£¬Õâ¿É¿àÁËÎÒÃÇÕâЩ¿ª·¢Õߣ¬ÎªÁËÈø÷ä¯ÀÀÆ÷±íÏÖÒ»Ö£¬²»ÖªµÀÓжàÉÙÇ°±²ºÄ·ÑÁ˶àÉÙÐÄѪ£¬Ï ......