¼ò½àʵÓõÄÊó±ê¾¹ý±äÉ«µÄ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;
Ïà¹ØÎÊ´ð£º
²»¶®ËûÍø¸ñÈçºÎÔÀí
\Using Nesting Grids
YUI Grids CSS provides a system for subdividing sections of your page with nestable grids. Use this technique to easily create complex layouts that go ......
³õѧCSS Óöµ½Ò»¸öÎÊÌâ ²»ÖªµÀÔõôʵÏÖ ¸ßÊÖ°ï°ïæ
ÎÒ¶¨ÒåÁËÒ»¸ö±ß¿ò ÏëÈñ߿òµÄ×óÓÒÁ½±ß·¢¹â ÓÃÂ˾µfilter:glow()Ó¦¸Ã¿ÉÒÔʵÏÖ¿ÉÊDz»ÖªµÀÔõôд
Èç¹û²»ÄÜʵÏÖʲô·½·¨ÄÜʵÏÖÄØ£¿
ÎÒдµÄ
......
ÔÚʹÓÃCSSÖеÄpadding-leftʱÓöµ½Ò»¸öÎÊÌâ¡£¾ÍÊDZ¾À´ÒѾÉèÖúõĿí¶È£¬padding-leftÒ»ÉèÖà ¶àÉÙºÃÏñ¾Í°ÑÕâ¸ö¼Ó¿íÁ˶àÉÙ¡£ºóÃæµÄDIV¾Í±äλÖÃÁË¡£ÓÐû½â¾ö°ì·¨Ñ½
ÇëÎÊÄãIE¼¸°¡£¿=£¬= ²»»áÓÐÕâÖÖÇé¿öÒ®
Èç¹ûÊÇIE6£¬Ä ......
HTML code:
<div style="width:200px; border:1px #CCC solid; height:160px;">
<div style="width:100%; z-index:1000; border:1px #F00 solid; height:50px;">
< ......
Ò»²©¿Í³ÌÐò£¬ÁбíÏÔʾ²©ÎÄ£¬ÎÒÏëÏÔÊ¾Ç°Ãæ200¸ö×Ö·û£¬²ÉÓÃ×Ö·û½ØÈ¡µÄ·½·¨£¬Êä³ö¸Ã×Ö·û´®ºó£¬ÓұߵÄÒ»¸ö²ã¾ÍÅܵ½×îÏÂÃæÈ¥ÁË£¬²»½ØÈ¡È«ÎÄÏÔʾµÄʱºòÓÖ²»»á£¬ÇëÎÊÒªÔõôÉèÖòãµÄÎÊÌâ
ÏÂÃæÊÇcssÎļþ
body {
......