Web¿ª·¢ µÚ¶þ²¿·Ö CSS»ù´¡£¨¶þ£© CSSÊéд¹æ·¶
1¡¢ÈýÖÖ²»Í¬µÄÑùʽ±í
Ñùʽ±í¸ù¾ÝÆäÊéдλÖò»Í¬£¬¹²·ÖΪÈýÖÖ£º
ÄÚÁªÑùʽ±í£¨inline£©£º¸ÃÑùʽ±íдÔÚ±êÇ©µÄstyleÊôÐÔÀ¸ºÔðÉèÖõ±Ç°±êÇ©µÄÑùʽ£»
ÄÚ²¿Ñùʽ±í£¨inner£©£º¸ÃÑùʽ±íÒ»°ãдÔÚhead±êÇ©µÄstyle±êÇ©Àͨ¹ýÑ¡ÔñÆ÷À´Ö¸¶¨Ä³¸öÑùʽËùÓ°ÏìµÄ±êÇ©£»
ÍⲿÑùʽ±í£¨external£©£º¸ÃÑùʽ±íÒ»°ãдÔÚ¶ÀÁ¢µÄ*.cssÎļþÀͨ¹ýÑ¡ÔñÆ÷À´Ö¸¶¨Ä³¸öÑùʽËùÓ°ÏìµÄ±êÇ©£¬ÔÚhead±êǩͨ¹ýlink±êÇ©ÒýÈëÍⲿÑùʽÎļþ£»
¿´Ò»¸öÀý×Ó£¬¹²Á½¸öÎļþ£¬ÔÚͬһ¸öĿ¼ÖУº
index.html
<!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" />
<!-- ÕâÀïÒýÈëÁËÒ»¸öÍⲿÑùʽ±í -->
<link type="text/css" rel="stylesheet" href="style.css" mce_href="style.css" />
<!-- ÕâÊÇÒ»¸öÄÚ²¿Ñùʽ±í -->
<mce:style type="text/css" ><!--
b { /* ÕâÊÇÒ»¸ö±êǩѡÔñÆ÷ */
background-color:#B0D1E6;
color:blue;
text-indent:2em;
text-align:left;
}
.title { /* ÕâÊÇÒ»¸öÀàÑ¡ÔñÆ÷ */
color:#209DA4;
text-decoration:underline;
text-align:left;
}
#id1 { /* ÕâÊÇÒ»¸öIDÑ¡ÔñÆ÷ */
background-color:#5E5E5E;
color:#FFFFFF;
font-weight:bold;
height:100px;
width: 300px;
border: 2px dotted #C7784E;
word-break:break-all;
overflow-y:auto;
overflow-x:hidden;
text-indent:2em;
margin:0 auto;
}
--></mce:style><mce:style type="text/css" mce_bogus="1"><!--
b { /* ÕâÊÇÒ»¸ö±êǩѡÔñÆ÷ */
background-color:#B0D1E6;
color:blue;
text-indent:2em;
text-align:left;
}
.title { /* ÕâÊÇÒ»¸öÀàÑ¡ÔñÆ÷ */
color:#209DA4;
text-decoration:underline;
text-align:left;
}
#id1 { /* ÕâÊÇÒ»¸öIDÑ¡ÔñÆ÷ */
background-color:#5E5E5E;
color:#FFFFFF;
font-weight:bold;
height:100px;
width: 300px;
border: 2px dotted #C7784E;
word-break:break-all;
overfl
Ïà¹ØÎĵµ£º
.inputbox {
padding-left: 2px;
border-top: 1px solid #9AA587;
border-right: 1px solid #DDDDDD;
border-bottom: 1px solid #DDDDDD;
border-left: 1px solid #9A ......
AJAX×Ô´ÓÒý½øÁËTab£¬×ÅʵÈÃÎÒ¿ªÐÄÁËÒ»·¬¡£µ«ÊÇ£¬ÔÚµ÷ÕûTabµÄÑùʽµÄʱºò£¬Ò²×ÅʵÈÃÎÒ³ÔÁËÒ»¾ª¡£
ÓÚÊÇ£¬±§×ÅûÓÐÀ§ÄÑÒ²ÒªÖÆÔìÀ§ÄѵÄÔÔò£¬¿ªÊ¼ÁËÕ÷;£º
°´ÕÕTab×÷ÕßRonald BucktonËù˵£¬TabµÄCSS°üº¬Èçϼ¸¸öÀࣺ
(1).ajax__tab_header: A container element that wraps all of the tabs at the top of the TabContainer.
......
1 Õë¶Ôfirefox ie6 ie7µÄcssÑùʽ
ÏÖÔڴ󲿷ֶ¼ÊÇÓÃ!importantÀ´hack£¬¶ÔÓÚie6ºÍfirefox²âÊÔ¿ÉÒÔÕý³£ÏÔʾ£¬
µ«ÊÇie7¶Ô!important¿ÉÒÔÕýÈ·½âÊÍ£¬»áµ¼ÖÂÒ³ÃæÃ»°´ÒªÇóÏÔʾ£¡ÕÒµ½Ò»¸öÕë
¶ÔIE7²»´íµÄhack·½Ê½¾ÍÊÇʹÓÓ*+html”£¬ÏÖÔÚÓÃIE7ä¯ÀÀһϣ¬Ó¦¸ÃûÓÐÎÊÌâÁË¡£
ÏÖÔÚдһ¸öCSS¿ÉÒÔÕâÑù£º
#1 { color: #33 ......
ÔÚtable ÖпØÖƵ¥Ôª¸ñÖ®¼äµÄ¼ä¾àÒªÓõ½cellspacing¡¢cellpadding£¬Ä¬ÈÏÇé¿öcellspacing¡¢cellpadding¾ù²»Îª0£¬µ«¾³£µÄ×´¿öΪÁ˲»ÈÃtableµ¥Ôª¸ñÖ®¼äµÄ¼ä¾àÓ°Ïìµ½ÃÀ¹Û£¬ÎÒÃǾ³£»á°Ñcellspacing¡¢cellpaddingÉèÖÃΪ0£¬Òò´Ë¾³£¿´µ½“< table cellspacing=0 cellpadding=0>”ÕâÑùµÄ´úÂë¡£ÕâÑù×öÎÞÐÎÖÐÔö¼ÓÁË´ ......
CSS£¬²ãµþÑùʽ±íµÄ×÷ÓÃÊÇʲô£¿ÎÒÃÇÏÈͨ¹ýÒ»¸öÀý×ÓÀ´Ìå»áһϣº
¿´´úÂ룺
index.html
<!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=" ......