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

Ò»¸öCSS+JavaScript±àдµÄÅÜÂíµÆ³ÌÐò

ת×Ô£º
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ͼƬÅÜÂíµÆ</title>
</head>
<body>
<div style="overflow:hidden; width:350px" id='div'>
<!-- ÕâÀïÊǵÚÒ»¸ö¹Ø¼üµã£¬overflow ÊôÐԹ涨µ±ÄÚÈÝÒç³öÔªËØ¿òʱ·¢ÉúµÄÊÂÇé -->
<!--
¿ÉÄܵÄÖµ
Öµ
ÃèÊö
visible
ĬÈÏÖµ¡£ÄÚÈݲ»»á±»ÐÞ¼ô£¬»á³ÊÏÖÔÚÔªËØ¿òÖ®Íâ¡£
hidden
ÄÚÈݻᱻÐÞ¼ô£¬²¢ÇÒÆäÓàÄÚÈÝÊDz»¿É¼ûµÄ¡£
scroll
ÄÚÈݻᱻÐÞ¼ô£¬µ«ÊÇä¯ÀÀÆ÷»áÏÔʾ¹ö¶¯ÌõÒÔ±ã²é¿´ÆäÓàµÄÄÚÈÝ¡£
auto
Èç¹ûÄÚÈݱ»ÐÞ¼ô£¬Ôòä¯ÀÀÆ÷»áÏÔʾ¹ö¶¯ÌõÒÔ±ã²é¿´ÆäÓàµÄÄÚÈÝ¡£
inherit
¹æ¶¨Ó¦¸Ã´Ó¸¸ÔªËؼ̳Рoverflow ÊôÐÔµÄÖµ¡£
-->
    <table width="308" border="1" align="center">
        <tr>
            <td >
                <div  id="div1" style=" display:inline">
                    <img src="image/01_s.jpg" width="214" height="203" style="display:inline"/><img src="image/02_s.jpg" width="214" height="203" style="display:inline"/><img src="image/03_s.jpg" width="214" height="203"style="display:inline" />
                   </div>
              </td>
              <td>
                  <div id='div2' style=" display:inline">
                  </d


Ïà¹ØÎĵµ£º

overflowÔÚCSSÖеÄÒâ˼ºÍÓ÷¨

overflow´Ó×ÖÃæÒâÒåÉÏÀ´½²¾ÍÊÇÒç³öµÄÒâ˼唄£¬»»¾ä»°Ëµ£¬ÄãÓиö²ã£¬µ«ÊÇÀïÃæµÄÄÚÈÝ£¬Í¼Æ¬»òÕßÎÄ×ÖÒª±È²ã´ó£¬overflow¾ÍÊÇÕë¶ÔÕâÖÖÇé¿ö½øÐд¦ÀíµÄ¡£  
  °üº¬4¸öÊôÐÔÖµ£¬visible,hidden,auto,scroll  
  visible¾ÍÊdz¬³öµÄÄÚÈÝÈÔÈ»Õý³£±»ÏÔʾ³öÀ´¡£  
  hidden¾ÍÊdz¬³öµÄÄÚÈݱ»Òþ² ......

ul li css ×öºáÏò²Ëµ¥

ת×Ôhttp://www.w3cn.org/article/tips/2005/105.html
ÎÒÃÇÏÈÀ´¿´Ò»¸ö²Ëµ¥µÄÀý×Ó£¬×îÖÕЧ¹ûÊÇ:
 
µÚÒ»²½£º½¨Á¢Ò»¸öÎÞÐòÁбí
ÎÒÃÇÏȽ¨Á¢Ò»¸öÎÞÐòÁÐ±í£¬À´½¨Á¢²Ëµ¥µÄ½á¹¹¡£´úÂëÊÇ£º
<ul>
<li><a href="1">Ê×Ò³</a></li>
<li><a href="2">²úÆ·½éÉÜ</a></li> ......

½¨Õ¾DIV+CSS Ö®ÍøÒ³ÇÐͼ¹ý³ÌÖÐdiv+cssÃüÃû¹æÔò

¡¡¡¡ÄÚÈÝ£ºcontentcontainer µ¼º½£ºnav ²àÀ¸£ºsidebar
¡¡¡¡À¸Ä¿£ºcolumn ±êÖ¾£ºlogo Ò³ÃæÖ÷Ì壺main
¡¡¡¡¹ã¸æ£ºbanner Èȵ㣺hot ÐÂÎÅ£ºnews
¡¡¡¡ÏÂÔØ£ºdownload ×Óµ¼º½£ºsubnav ²Ëµ¥£ºmenu
¡¡¡¡ËÑË÷£ºsearch Ò³½Å£ºfooter ¹ö¶¯£ºscroll
¡¡¡¡°æÈ¨£ºcopyright ÓÑÇéÁ´½Ó£ºfriendlink ×Ӳ˵¥£ºsubmenu
¡¡¡¡ÄÚÈÝ£ºcontent ......

CSS±Ê¼Ç

Ò»¡¢ÐǺÅ*
Ó¦¸ÃÊǸöͨÅä·û¡£±ÈÈç
<style type="text/css">
.roundBorder *
{
 background: white;
 display: block;
 height: 1px;
 overflow: hidden;
}
</style>
……
 <b class="roundBorder">
 <b class="round ......

javascript StyleSheetÑùʽ²Ù×÷Àà

ÔçÉÏÔÚcsdnÉÏ¿´ÓÐÈËÎÊÒ³Ãæstyle sheetÔõôÐÞ¸ÄÀïÃæµÄrule,¾ÍдÁ˸öÀà,¸ÃÀà¶Ô¼æÈÝFFºÍIE×öÁË´¦Àí¡£
/**//*--------------------------------------------
    ÃèÊö : Ìí¼ÓеÄÑùʽrule
    ²ÎÊý : styleSheetsË÷Òý
    ´úÂë :&nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ