¼ò½àʵÓõÄÊó±ê¾¹ý±äÉ«µÄbox(´¿CSSÖÆ×÷)
¼ò½àʵÓõÄÊó±ê¾¹ý±äÉ«µÄboxЧ¹û£¬´¿CSSÖÆ×÷£¬ÏÂÃæÊÇÔ´´úÂ룬¿ÉÒÔÁí´æÎª .html ¸ñʽ²é¿´£¬»òÕßÔÚ×îÏÂÃæÓÐÔÚÏßÑÝʾµÄµØÖ·¡£
HTML code:
<!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>CSSʵÓÃÊó±ê¾¹ý±äÉ«µÄbox|www.abaonet.com|</title>
</head>
<style type="text/css">
body {
background: #fff;
font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
font-size: 11px;
}
/* The style starts here */
#tabs {
padding:0;
margin:0 0 0 15px;
list-style:none;
}
#tabs li {
display:inline;
padding:0;
background:#f8f8f8;
float:left;
margin-right:35px;
position:relative;
}
#tabs li.one {
width:190px;
}
#tabs li.two {
width:240px;
}
#tabs li.three {
width:190px;
}
#tabs li a.outer-link {
background:#f8f8f8;
display:block;
width:100%;
position:relative;
}
#tabs table {
border-collapse:collapse;
margin:-1px;
}
#tabs li b {
display:block;
background:transparent url(/uploads/jsCode/img/2312.gif) no-repeat 0 0;
padding:2px 0 0 5px;
height:15px;
font-size:0.9em;
overflow:hidden;
}
#tabs li div {
border:1px solid #888;
Ïà¹ØÎÊ´ð£º
ÒªÇó¼æÈÝÖ÷Òªä¯ÀÀÆ÷£¬
×îºÃͼƬ²»ÓÃÉèÖÃpx´óС£¬¸ù¾Ý°üÈÝÌå´óС×Ô¶¯Ëõ·Å¡£
ÆÚ´ýÄÜÓÐÕâ·½ÃæÅŰæµÄרÌâ×ÊÁÏ¡£
ÇëÎÊimgºÍspanΪʲôҪÉèÖÃΪdisplay£ºblockÊôÐÔ£¬ÕâÑù×öÓÐʲôºÃ´¦£¬Í¼ÎÄÁбíÀý×ÓÀ´×ÔdedeÔÊ ......
ÎÒÏÖÔÚÔÚÑ§Ï°ÍøÕ¾¿ª·¢£¬Ñ§Ï°µÄ¹ý³ÌÖз¢ÏÖCSSÊÇÓÃÀ´ÉèÖÃÑùʽµÄ£¬¶øDOMÒ²¿ÉÒÔÓÃÀ´ÉèÖÃÑùʽ£¬js¿âÒ²¿ÉÒÔ¡£
ÕâЩ¾¿¾¹ÔÚʲôʱºòÓÃʲô?
ÇëÖ¸µã£¡Ð»Ð»£¡
²»ÓÃjs+dom²Ù×÷css,LZд¸öÓÃdom²Ù×÷cssµÄÀ´¿´¿´
DOMÖ»ÊÇÒ» ......
µ±¸ö²ãdiv CSSÑùʽ±»ÉèÖóÉfloat:leftÒÔºó
Ëû¾ÍÊÇÒ»¸ö·Ç±ê×¼Á÷ÁË£¬ËûµÄ¸ß¶ÈÒ²±ä³ÉÁË0£¿
ÇëÎÊʲôÊǷDZê×¼Á÷£¨Í¨Ë×Ò»µã£¬ºÇºÇ£©£¿
Ϊʲô¸ß¶È»á±ä³É0ÄØ Ëû²»ÊÇÃ÷Ã÷»¹ÔÚÒ³ÃæÏÔʾÂ𡣡£¸Õ³õѧCSS£ ......
CSS code:
body {
}
#x
{
width:1024px;
height:768%;
background-color:Red;
position:relative;
}
#x.top
{ position:absolute;
width:800px;
height:100px;
top:0px ......