cssÑ¡ÔñÆ÷
dojo.query()º¯ÊýÒªÓõ½¸÷ÖÖcssÑ¡ÔñÆ÷À´Ñ°ÕÒdomÔªËØ£¬ÏÂÃæ¾Í³£¼ûµÄcss3Ñ¡ÔñÆ÷½øÐмòÂԵĽéÉÜ¡£
1¡¢ »ù±¾Ñ¡ÔñÆ÷£º¸ù¾Ý±êÇ©¡£
ÀýÈ磺P{color£ºblue}
2¡¢ Ñ¡ÔñÆ÷×飺¶à¸ö±êÇ©Ö®¼äÓöººÅ¸ô¿ª¡£
ÀýÈ磺P£¬h{color£ºblue}
3¡¢ IdÑ¡ÔñÆ÷£ºÓÃ#idÃû±íʾ¡£
ÀýÈ磺<div id=”d”>111</div>, #d{color:blue}
4¡¢ ÀàÑ¡ÔñÆ÷£ºÓÃ.ÀàÃûµÄ·½Ê½
ÀýÈ磺¶¨ÒåÒ»¸öÀàÑùʽ£º.c{color:blue}
Ó¦Óõ½ËùÓбêʶÓиÃÀàÃûµÄ±êÇ©ÖУ¬Èç<div class=”c”>
5¡¢ ½á¹¹»¯Ñ¡ÔñÆ÷£º¸ù¾ÝÔªËØÖ®¼äµÄ°üº¬¹ØϵѡÔñ£¬×î¸ß²ãµÄÅÅÔÚ×îÇ°Ã棬ÖмäÓÿոñ
ÀýÈ磺div p{color:blue} Ñ°ÕÒÍâ²ãÊÇdiv±êÇ©µÄp±êÇ©ÔªËØ
6¡¢ ÊôÐÔÑ¡ÔñÆ÷£ºÓÃ[ÊôÐÔ]µÄ·½Ê½Ö¸¶¨ÓµÓиÃÊôÐÔµÄÔªËØÁбí
ÀýÈ磺[height]{color:blue}
7¡¢ ÆäËûÑ¡ÔñÆ÷¡£
ÀýÈ磺
È«¾ÖÑ¡ÔñÆ÷ * £ºÆ¥ÅäËùÓеÄÔªËØ
E>F:º¢×ÓÑ¡ÔñÆ÷
E F:ºó´úÑ¡ÔñÆ÷
E[height]£ºÆ¥ÅäEÇÒÓµÓÐheightÊôÐÔ
E[height=200]
E#myid£ºÆ¥ÅäEÇÒÓµÓГmyid”µÄid
Ïà¹ØÎĵµ£º
£¼!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 ......
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
padding: 0;
margin: 0;
}
fieldset, img {
border: 0;
}
table {
border-co ......
Ò»¡¢ÐǺÅ*
Ó¦¸ÃÊǸöͨÅä·û¡£±ÈÈç
<style type="text/css">
.roundBorder *
{
background: white;
display: block;
height: 1px;
overflow: hidden;
}
</style>
……
<b class="roundBorder">
<b class="round ......
IE6ÖÐCSSÎÞЧÎÊÌâ
ͬÊ·´À¡ÎÒÒ»¸öÒ³ÃæÔÚIE7ºÍFirefox϶¼Õý³£,µ«ÊÇÔÚIE6ÖÐÎÞÑùʽ.µ«ÊÇÒ³ÃæÎÒ×ö¸øËûÃǵÄʱºòÒ»Çж¼ÊÇÕý³£µÄ.°ÑËû´«¸øÎҵİü´ò¿ªÑо¿ÁË°ëÌì·¢ÏÖ,Ò³Ãæ±àÂë´ÓGB2312±ä³ÉÁËUTF-8,ÆäËû¶¼Ã»ÓÐʲô¸Ä±ä.ÓÚÊÇ»¹ÔΪGB2312,Ò³ÃæÕý³£.ÔÙ½«ÍⲿCSS¸´ÖƵ½Ò³ÃæÄÚ²¿,ͬÑùÕý³£.Ñо¿Ðí¾ÃÕÒ²»µ½ÎÊÌâËùÔÚ,ºöÈ»·¢ÏÖCSSÀïÃæÓжÎ× ......
Ò»¡¢document.formName.item(“itemName”) ÎÊÌâ
ÎÊÌâ˵Ã÷£ºIEÏ£¬¿ÉÒÔʹÓà document.formName.item(“itemName”) »ò document.formName.elements ["elementName"]£»FirefoxÏ£¬Ö»ÄÜʹÓÃdocument.formName.elements["elementName"]¡£
½â¾ö·½·¨£ºÍ³Ò»Ê¹ÓÃdocument.formName.elements["elementName" ......