ÕâÑùµÄcssд·¨ÊÇʲôÒâ˼? - Web ¿ª·¢ / HTML(CSS)
.css1 .css2 #objid {OVERFLOW: scroll;...}
.css1 .css3 {...}
°Ñ¾ßÓй²Í¬ÑùʽµÄдµ½Ò»ÆðÁË ºÃά»¤
ÖмäÎÞ¶ººÅ£¬ÊôÓÚÑùʽǶÌ×
ÑùʽµÄ¹²Í¬µÄµØ·½Ð´ÔÚÒ»Æ𣬿ÉÒÔÊ¡µô²»±ØÒªµÄ´úÂëÐÐ~
Õâ¸ö¾ÍÊÇ´úÂëµÄÖØÓúÍά»¤~
ѧϰÁË
ºó´úÑ¡ÔñÆ÷
°Ñ¾ßÓй²Í¬ÑùʽµÄдµ½Ò»ÆðÁË Ò×ÓÚά»¤
<div class="css1">
<div class="css2">
<div id="objid">
</div>
</div>
</div>
-----------------------
<div class="">
<div class="css3 ">
</div>
</div>
up
òËÆûÓй²Í¬ÑùʽµÄÒâ˼°É£¬Ö»ÊÇ°ÑÕâ¸öÈÝÆ÷µÄ¸¸ÈÝÆ÷¶¼Ð´³öÀ´£¬±È½ÏºÃÕÒ¡£
ÓÐʱºòÊÇΪÁËÇø·ÖÁ½¸öͬÃûµ«ÊÇÓÖ²»Í¬µÄÑùʽ¡£
±ÈÈç˵ÎÒ¸ø#navi .currentºÍ#subNavi .current¶¼ÊÇcurrent£¬µ«ÊÇÇ°ÕßÊǸøÖ÷²Ëµ¥µÄµ±Ç°ÑùʽÓõģ¬
ºóÕßÊǸø×Ӳ˵¥µÄµ±Ç°ÑùʽÓõġ£
ËÄܾٸöÀý×Ó˵Ã÷ÄØ£¿ ²»Ì«Ã÷°×ѽ£¬ лл.
6Â¥µÄ´ð°¸ÊÇ´íµÄ£¬¿´Õâ¸ö
http://www.4css.cn/blog/?p=93
¼Ì³Ð ¶øÒÑ£¬ÆßÂ¥Õý½â
һ¥˵µÄÊÇÕâÖÖÇé¿ö.css1, .css2{}
ÅÉÉúÑ¡ÔñÆ÷
ͨ¹ýÒÀ¾ÝÔªËØÔÚÆäλÖõÄÉÏÏÂÎĹØϵÀ´¶¨ÒåÑùʽ£¬Äã¿ÉÒÔʹ±ê¼Ç¸ü¼Ó¼ò½à¡£
En
Ïà¹ØÎÊ´ð£º
ÔÚʹÓÃCSSÖеÄpadding-leftʱÓöµ½Ò»¸öÎÊÌâ¡£¾ÍÊDZ¾À´ÒѾÉèÖúõĿí¶È£¬padding-leftÒ»ÉèÖà ¶àÉÙºÃÏñ¾Í°ÑÕâ¸ö¼Ó¿íÁ˶àÉÙ¡£ºóÃæµÄDIV¾Í±äλÖÃÁË¡£ÓÐû½â¾ö°ì·¨Ñ½
ÇëÎÊÄãIE¼¸°¡£¿=£¬= ²»»áÓÐÕâÖÖÇé¿öÒ®
Èç¹ûÊÇIE6£¬Ä ......
ÄÄλ¸ßÊÖÄÜ°ïÎÒ½â¾öÕâ¸öÎÊÌ⣺
ÓÐûÓÐcssʵÏÖ±íµ¥µÄÏÂÀ¿ò¼ýÍ·ÓÃͼƬ´úÌ棿²»ÓÃjs
ÎÒʹÓÃÁËjsºó£¬ÔÊÐí¿Ø¼þÔËÐÐÇ°Ä£¿é±äÐΣ¬ÔÊÐíºó²ÅÕý³£ÏÔʾ£¬ËùÒÔÎÒÏëÔËÓÃcssÀ´ÊµÏÖ¡£
лл£¬ÔÚÏߵȡ£
ºÃÏñ¶¼ÊÇÓÃJS¡£¡£À´ÊµÏÖ± ......
ΪʲôHTMLÒÔ¼°Ò»Ð©ÆäËü±êÇ©»áÏÔʾһЩÌض¨±íÏÖÐÎʽÄØ£¿ÈçHTMLÖеĻ»ÐбêÇ©<BR/>ÔڵײãÊÇÔõÑùʵÏÖµÄÄØ£¿ÏÖʵµÄÔÀíÊÇʲôÄØ
È¥W3C¹Ù·½ÍøÕ¾ÉÏ£¬¿´¿´°É£¡ÎÒÏëÒ»¿´Äã¾ÍÃ÷°×ÁË
ÎҲºͱàÒëÔÀíÓйأ¬ä¯ÀÀÆ÷Àï¿É ......