[css Hack]IE6,IE7,IE8,FireFoxµÄcssÏàÈÝÐÔ
1.Çø±ðIEºÍFirefox
.title {
background:blue; /*Firefox */
background:red \9; /*IE6¡¢IE7¡¢IE8*/
}
2.Çø±ðIE6¡¢IE7¡¢IE8¡¢Firefox
.title {
background:blue; /*Firefox */
background:red \9; /*IE6¡¢IE7¡¢IE8 */
*background:black; /*IE7 */
_background:orange; /*IE6 */
}
×¢Ò⣬ÎÞÂÛÔõÑù£¬¶¼ÊÇFireFoxÔÚ×îÇ°£¬ie°æ±¾ÒÀ´Î½µµÍ£¬
ÒòΪºóÃæµÄcss¿ÉÒÔ¸²¸ÇÇ°ÃæµÄ¡£
Ïà¹ØÎĵµ£º
½ñÌìдÁËÒ»¸ö¼òµ¥µÄÍøÒ³£¬Çë¿´´úÂ룺
´íÎóµÄ£º
HTML´úÂ룺
½ñÌìµÄÈÕ×Ó
//CSS´úÂëʹÓÃÍⲿÒýÈëʽ
ÎҵļÒÏçÔÚ¿Àï
CSS´úÂ룺
/* CSS Document */
body{
font-family:Arial, Helvetica, sans-serif;
font-size:20px;
color:red; /*ÒªµÄ¾ÍÊÇÕâÑùµÄЧ¹û£ºÉèÖÃ×ÖÌåÑÕɫΪºìÉ«*/
}
½á¹ûÏÔʾµÄ×ÖÌ ......
µ±Äã¿´µ½<input>Õâ¸öhtml±êÇ©µÄʱºò£¬Äã»áÏ뵽ʲô£¿Ò»¸öÎı¾¿ò£¿Ò»¸ö°´Å¥£¿Ò»¸öµ¥Ñ¡¿ò£¿Ò»¸ö¸´Ñ¡¿ò£¿……¶Ô£¬¶Ô£¬¶Ô£¬ËüÃǶ¼¶Ô¡£Ò²ÐíÄã¿ÉÄÜÏë²»µ½£¬Õâ¸öССµÄinput¾¹È»¿ÉÒÔ´´Ôì³ö10¸ö²»Í¬µÄ¶«Î÷£¬ÏÂÃæÊǸöÁÐ±í£¬¿´¿´£¬ÄÄЩÊÇÄãûÓÐÏëµ½µÄ£º
<input type="text" /> Îı¾¿ò
<input type="p ......
ʹÓà line-height ´¹Ö±¾ÓÖÐ
line-height:24px;
ʹÓù̶¨¿í¶ÈµÄÈÝÆ÷²¢ÇÒÐèÒªÒ»Ðд¹Ö±¾ÓÖÐʱ£¬Ê¹Óà line-height ¼´¿É£¨¸ß¶ÈÓ븸²ãÈÝÆ÷Ò»Ö£©£¬¸ü¶àµÄ´¹Ö±¾ÓÖÐ×ܽá¿ÉÒÔ¿´ÕâÀï¡£
Çå³ýÈÝÆ÷¸¡¶¯
#main {
overflow:hidden;
}
²»ÈÃÁ´½ÓÕÛÐÐ
a {
white-space:nowrap;
}
ÉÏÃæµÄÉ趨¾ÍÄܱÜÃâÁ´½ÓÕÛÐУ¬²»¹ý¸ö ......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ÎҵĻ¬¶¯ÃÅ& ......
1.Ò»¸öºÜºÃµÄAppfuseѧϰÂÛ̳:http://n4.nabble.com/AppFuse-f547863.html
2.Appfuse CSSµÄ¿ª·¢https://appfuse-css.dev.java.net/
3.CSSÑùʽµÄ²é¿´£¬CSS Framework Themes: http://css.appfuse.org/themes/
4.CSS ÑùʽµÄÏÂÔØhttp://issues.appfuse.org/browse/CSS-13
¸öÈ˸оõ±È½ÏºÃµÄÁ½¸öCSS style
http://css.appfu ......