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

9¸öÓÀ²»¹ýʱµÄcssÈýÀ¸²¼¾Ö

        ÎÒϲ»¶3À¸²¼¾ÖµÄÍøÒ³Éè¼Æ£¬µ«ÊÇ3À¸²¼¾ÖÏà¶ÔÀ´Ëµ¾Í±È½Ï¸´ÔÓ£¬ÓÐЩÄÑÒÔ¿ØÖÆ£¬¾¡¹ÜʱÏÂÕý»ðµÄWeb2.0ËƺõºÜÉÙ²ÉÓÃ3À¸²¼¾Ö¡£µ«Ã»¹Øϵ£¬ÎÒÃÇÊÇ·Ç·Ç·ÇÖ÷Á÷¡£
        Ê×ÏÈ£¬ÈκÎÒ»¸ö²¼¾Öͨ³£¶¼ÓÐheaders, navigation bars, content containers,
sidebarsÒÔ¼°
footers¡£ÎÒÃÇÔÚÉè¼ÆÈýÀ¸Ö÷ÌâµÄʱºò£¬×îÖØÒªµÄÄ¿µÄ¾ÍÊÇ·¢»ÓÆä×î´óµÄÁé»îÐÔºÍ×ÔÊÊÓ¦¸ß¶È£¬ÕâÑù²Å»á¿´ÉÏÈ¥¸ü¼ÓÃÀ¹Û¡£ÏÂÃæ9¸öÈýÀ¸CSS²¼¾Ö½«´Ó¶à¸ö
·½ÃæÀ´ÊµÏÖ×îºÃµÄ²¼¾Ö·½·¨£¬²¢¶¼¼æÈÝIEºÍFF¡£
Á½¸ö¹Ì¶¨À¸ºÍÒ»¸ö¿É±äÀ¸
Ò»¸ö¾«ÖµÄ3À¸²¼¾Ö¼¼ÇÉʾÀý
   1. #leftcontent {
      position: absolute;
      left:10px;
      top:50px;
      width:200px;
      }
   2. #centercontent {
      margin-left: 199px;
      margin-right:199px;
      margin-left: 201px;
      margin-right:201px;
      }
      HTML>body #centercontent {
      margin-left: 201px;
      margin-right:201px;
      }
   3. #rightcontent {
      position: absolute;
      right:10px;
      top:50px;
      width:200px;
      }
ʹÓÃ100%¸ß¶È
   1. #left { float: left; width: 155px; padding: 5px; position: relative; /*** IE needs this ***/ }
   2. #right { float: right; width: 110px; padding: 5px; position:
relative; /*** IE needs this ***/ margin-right: -120px; /** This
negative margin-right value is the same as the right column width
(width + padding). ***/ position: relative; /*** IE needs this ***/ }
   3. #content { float: right; margin-right: -165px; /*** Same l


Ïà¹ØÎĵµ£º

ÓÃjavascript¶¯Ì¬ÉèÖÃcssÑùʽµÄÖµ

 css¿ØÖÆλÖãº
´¿Êý×Ö
el.style.posLeft = 0;
el.style.posTop = 0;
Êý×Ö+µ¥Î»
el.style.left = "0px";
el.style.top = "0px";
css¿ØÖÆÔªËصÄÑùʽ£º
document.getElementById("para").style.fontWeight ="bold";
»ò£¨ÆäËûÒ²ÊÇÕâÑù£©£º
document.getElementById("para").className ="strong"; ......

¸÷ÖÖCSS bugÓë¼¼ÇÉ


1¡¢ÈÝÆ÷²»À©Õ¹ÎÊÌâ
Õâ¸öÊǾ­³£ÔÚÎÒÇÐͼµÄʱºòÓöµ½µÄÎÊÌ⣬È磺
<!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= ......

cssÈýÖÖÑùʽ!

ÄÚ²¿Ñùʽ±í
ÄÚ²¿Ñùʽ±íÐèÒªÔÚÍøÒ³µÄ<head>²¿·Ö¶¨Ò壬¸ñʽÈçÏ£º
<head>
<style type="text/css">
/*·ûºÏCSSÓï·¨½á¹¹µÄCSSÓï¾ä£¬ÀýÈç*/
body { background-color: blue; }
</style>
</head>
ÐÐÄÚÑùʽ±í(ÄÚǶÑùʽ±í)
ÐÐÄÚÑùʽ±íÖ±½ÓÔÚ±êÇ©ÄÚ²¿¶¨Ò壬ʹÓÃstyleÊôÐÔ£¬Ð´·¨ÈçÏ£º ......

ѧϰCSSÁ˽ⵥλemºÍpxµÄÇø±ð

ÔÚ¹úÄÚÍøÕ¾ÖУ¬°üÀ¨Èý´óÃÅ»§£¬ÒÔ¼°“ÒýÁì”ÖйúÍøÕ¾Éè¼Æ³±Á÷µÄÀ¶É«ÀíÏ룬ChinaUIµÈ¶¼ÊÇʹÓÃÁËpx×÷Ϊ×ÖÌ嵥λ¡£Ö»ÓаٶȺôõ×öÁ˸ö¿Éµ÷µÄ±íÂÊ¡£¶øÔÚ´óÑó±Ë°¶£¬¼¸ºõËùÓеÄÖ÷Á÷Õ¾µã¶¼Ê¹ÓÃem×÷Ϊ×ÖÌ嵥룬Ҳ¾ÍÊǿɵ÷µÄ¡£Ã»´í£¬px±Èem¸ü¼ÓÈÝÒ×ʹÓ㬴󲿷ֶÁÕß²»ÖªµÀemΪºÎÎï»òÕßËüÏ൱ÓÚ¶àÉÙpx¡£¹úÍâÈËÊ¿Èç´ËÖØÊÓÍøÕ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ