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

cssÀý×Ó

/*
*´´½¨ÈË£ºÝþÒËÖÒ
*ÓÃ;£ºÑ§Ï°css£¬Ó¦ÓÃÓÚÐÂÎÅϵͳ
*/
*
{
    /*°ÑĬÈÏÖµÉèÖÃΪ0*/
    margin: 0;
    padding: 0;
    border-width: 0;
}
body
{
    font-size: 14px;
}
a:link£¬a:visited
{
    /*Êó±êÎ´ÒÆÉÏÈ¥µÄ״̬¡¢³¬Á´½Ó·ÃÎʺóµÄÑùʽ*/
    color: Black;
    text-decoration: none;
}
a:hover
{
    /*Êó±êÒÆµ½³¬Á´½ÓÉϵÄÑùʽ*/
    color: red;
    text-decoration: underline;
}
#top, #search, #main, #footer
{
    /*¹«¹²Ñùʽ*/
    margin: 10px auto 10px auto;
    width: 760px;
}
#top
{
    /*¶¥²¿Ñùʽ*/
}
#search
{
    /*ËÑË÷Çø*/
}
.test
{
    border-width: 0;
}
#main
{
    /*¿É±äÄÚÈÝÇø*/
    height: 313px;
    margin-bottom: 10px;
}
#footer
{
    /*µ×²¿ÉèÖÃ*/
    text-align: center;
    border-top: solid 1px #0df;
    padding-top: 10px;
    clear: left;
}
.textbox
{
    /*ËùÓÐÎı¾¿òµÄÑÕÉ«*/
    border: solid 1px black;
    background-color: Aqua;
}
.button
{
    /*ËùÓÐButtonµÄ¸ñʽ*/
    border: solid 1px black;
    background-color: Olive;
}
input
{
    vertical-align: middle;
}
ul, li
{
    /*ÏîÄ¿ÁбíÑùʽ*/
    list-style-type: none;
}
li
{
    text-align: center;
    margin: 20px;
}
li a:link a:visited
{
    /*ÏîÄ¿ÁбíÏÂÁ¬½ÓµÄÑùʽ*/
    color: blue;
    text-decoration: underline;
    font-weight: bold;
}
li a:hover
{
    color: Red;
}
.commonFrm
{
    /*ÐÂÎÅ·ÖÀ


Ïà¹ØÎĵµ£º

ÈçºÎÈø¡¶¯²ã¼Ómarginºó²»»»ÐÐ Div+CSS½Ì³Ì

´ËÎÄÎªÍøÉÏÊÕ¼¯~
¸ø¿Í»§×öÕ¾µÄʱºòÓöµ½µÄÎÊÌâ,div²ã¼ÓÁËmarginºó ×Ü¿í¶È³¬¹ý¸¸¼¶²ã¿í¶È ¾Í×Ô¶¯»»ÐÐÁË ÈçºÎÈø¡¶¯²ã¼Ómarginºó²»»»ÐÐÄØ?
ÏÂÃæ¿´¸¡¶¯²ã¼Ómarginºó»»ÐеÄÀý×Ó:
±ÈÈç˵ÓиöDIV¿í¶ÈΪ380px£¬ËüÀïÃæÓÐÒ»¸ö²Ëµ¥ÁÐ±í£¬Ã¿¸ö¿í¶ÈΪ60px£¬margin-rightΪ20px¡£Èç¹û¾Í°´ÕÕÏÂÃæµÄHTML½á¹¹À´×öµÄ»°£¬ÄÇôÕâ¸ö²Ëµ¥ÁбíÄÜ ......

CSSÔÚMyEclipseÏÂÎÞ·¨ÔØÈëÎÊÌâ¡£

ÔÚJSPÒ³ÃæÉϼÓÈë
<%String path = request.getContextPath();%>
<link  href="<%=path%>/css/style.css" rel="stylesheet" type="text/css">
ÏÂÁз½Ê½Ã²ËƲ»ÐУº
<link  href="../css/style.css" rel="stylesheet" type="text/css">
<link  href="../../css/style.css" rel ......

css×Ô¶¯Ê¹ÓÃÑùʽ

ÎÄ×Ö×Ô¶¯Ê¹ÓÃÑùʽ
.inputText{
border:1px solid #7898b8;
height:20px;
padding-left:2px;
line-height:20px;
background-image:url(images\\inputtext_bg.gif);
background-repeat:repeat-x;
color:#339900;
}
.inputTextÊÇ ×ÖÌå×Ô¶¯ÉèÖÃÑùʽµÄÃû³Æ
¸÷Öֿؼþ×Ô¶¯Ì×ÓÃÑùʽ
±ÈÈçtable,td
table{border-colla ......

´¿CSSÎÞͼʵÏÖDIV±ß¿òƽ»¬ÒõÓ°

<!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±ß¿òÒõÓ°< ......

17+ cssÖÆ×÷Êý¾ÝչʾЧ¹û

ÒÔÏÂÊÕ¼¯·ÖÏíµÄÊý¾Ýͼ±íµÄչʾЧ¹û£¬ÊÇÍêÈ«ÓÃhtmlºÍcssÀ´ÊµÏֵġ£Í¨¹ý×ÐϸÑо¿Ñ§Ï°ÕâЩ°¸Àý¶ÔÓÚÎÒÃÇѧϰcss»áÓкܴó°ïÖúµÄ¡£
1¡¢ÍêȫʹÓÃdiv¡¢spanºÍcssÖÆ×÷µÄÊý¾Ýͼ±í¡£
2¡¢ÓкܶàÓô¿cssÖÆ×÷µÄÊý¾Ýͼ±í£¬ÎҸоõÕâ¸öÊÇ×öµÄ×îÆ¯ÁÁµÄÒ»¸ö¡£
3¡¢Õâ¸öÏßÐÎÊý¾Ýͼ±íÍêÈ«»ùÓÚhtmlºÍcssÖÆ×÷µÄ£¬Ã»ÓÐÓ¦ÓÃjs¡£ÕâÑùµÄͼͼ±í¼ÓÔØ¿ì£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ