CSS±ß¿òÊôÐÔ
±ß¿ò·ç¸ñÊôÐÔ(border-style)
Õâ¸öÊôÐÔÓÃÀ´É趨ÉÏÏÂ×óÓұ߿òµÄ·ç¸ñ£¬ËüµÄÖµÈçÏ£º
none (ûÓб߿ò£¬ÎÞÂ۱߿ò¿í¶ÈÉèΪ¶à´ó)
dotted (µãÏßʽ±ß¿ò)
dashed (ÆÆÕÛÏßʽ±ß¿ò)
solid (Ö±Ïßʽ±ß¿ò)
double (Ë«Ïßʽ±ß¿ò)
groove (²ÛÏßʽ±ß¿ò)
ridge(¼¹Ïßʽ±ß¿ò)
inset (ÄÚǶЧ¹ûµÄ±ß¿ò)
outset (Í»ÆðЧ¹ûµÄ±ß¿ò)
±ß¿ò¿í¶ÈÊôÐÔ(border-width)
Õâ¸öÊôÐÔÓÃÀ´É趨ÉÏÏÂ×óÓұ߿òµÄ¿í¶È£¬ËüµÄÖµÈçÏ£º
medium (ÊÇȱʡֵ)
thin (±Èmediumϸ)
thick (±Èmedium´Ö)
Óó¤¶Èµ¥Î»¶¨Öµ¡£¿ÉÒÔÓþø¶Ô³¤¶Èµ¥Î»(cm, mm, in, pt, pc)»òÕßÓÃÏà¶Ô³¤¶Èµ¥Î» (em, ex, px)¡£
ÑÝʾʾÀý£º·Ö±ðÓÃmedium, thin, thickºÍ³¤¶Èµ¥Î»¶¨ÖƵÄCSS±ß¿ò¿í¶ÈÊôÐÔʾÀý
±ß¿òÑÕÉ«ÊôÐÔ(border-color)
Õâ¸öÊôÐÔÓÃÀ´É趨ÉÏÏÂ×óÓұ߿òµÄÑÕÉ«¡£Àý¾äÈçÏ£º
.d5 {border-color:gray;border-style:solid;}
ÑÝʾʾÀý
±ß¿òÊôÐÔ(border)
Õâ¸öÊôÐÔÊDZ߿òÊôÐÔµÄÒ»¸ö¿ì½ÝµÄ×ÛºÏд·¨£¬Ëü°üº¬border-width, border-styleºÍborder-color¡£Àý¾äÈçÏ£º
.d1 {border:5px solid gray;}
ÑÝʾʾÀý
µ¥±ß±ß¿òÊôÐÔ
ÉÏÏÂ×óÓÒËĸö±ß¿ò²»µ«¿ÉÒÔͳһÉ趨£¬Ò²¿ÉÒÔ·Ö¿ªÉ趨¡£
É趨Éϱ߿òÊôÐÔ£¬Äã¿ÉÒÔʹÓÃborder-top, border-top-width, border-top-style, border-top-color¡£
É趨ϱ߿òÊôÐÔ£¬Äã¿ÉÒÔʹÓÃborder-bottom, border-bottom-width, border-bottom-style, border-bottom-color¡£
É趨×ó±ß¿òÊôÐÔ£¬Äã¿ÉÒÔʹÓÃborder-left, border-left-width, border-left-style, border-left-color¡£
É趨Éϱ߿òÊôÐÔ£¬Äã¿ÉÒÔʹÓÃborder-right, border-right-width, border-right-style, border-right-color¡£
ÑÝʾʾÀý£ºÉèÖõ¥±ß±ß¿òÊôÐÔµÄʾÀý
Ïà¹ØÎĵµ£º
ÔÚtableÖпØÖƵ¥Ôª¸ñÖ®¼äµÄ¼ä¾àÒªÓõ½cellspacing¡¢cellpadding£¬Ä¬ÈÏÇé¿öcellspacing¡¢cellpadding¾ù²»Îª0£¬µ«¾³£µÄ×´¿öΪÁ˲»ÈÃtableµ¥Ôª¸ñÖ®¼äµÄ¼ä¾àÓ°Ïìµ½ÃÀ¹Û£¬ÎÒÃǾ³£»á°Ñcellspacing¡¢cellpaddingÉèÖÃΪ0£¬Òò´Ë¾³£¿´µ½“<table cellspacing=0 cellpadding=0>”ÕâÑùµÄ´úÂë¡£ÕâÑù×öÎÞÐÎÖÐÔö¼ÓÁË´ú ......
Jquery¶ÔcssµÄ²Ù×÷Ï൱·½±ã£¬Äܷܺ½±ãÎÒÃÇȥͨ¹ýjsÐÞ¸Äcss¡£´«Í³javascript¶ÔcssµÄ²Ù×÷Ï൱·±Ëö£¬±ÈÈç
<div id="a" style="background:blue">css</div>
È¡ËüµÄbackgroundÓï·¨ÊÇ£º
document.getElementById("a").style.background
¶øjQuery¶Ôcss¸ü·½±ãµÄ²Ù×÷£º
$("#a").background();$("#a").background ......
°´Å¥Ñùʽ*/
.ButtonCss {}{
font-family: "Tahoma", "ËÎÌå";
font-size:9pt; color: #003399;
border: 1px #003399 solid;
color:006699;
BORDER-BOTTOM: #93bee2 1px solid;
BORDER-LEFT: #9 ......
DIV£«CSSÍøÒ³²¼¾ÖÕâÊÇÒ»ÖÖÇ÷ÊÆ,ÎÒÒ²¿ªÊ¼Ë³Ó¦Õâ¹ÉÇ÷ÊÆÁË,²»¹ýÔÚʹÓÃDIV£«CSSÍøÕ¾Éè¼ÆµÄʱºò£¬Ó¦¸Ã×¢ÒâcssÑùʽ¼æÈݲ»Í¬ä¯ÀÀÆ÷ÎÊÌ⣬ÌرðÊǶÔÍêȫʹÓÃDIV CSSÉè¼ÆµÄÍøÒ³£¬¾ÍÓ¦¸Ã¸ü×¢ÒâIE6¡¢IE7¡¢FF¶ÔCSSÑùʽµÄ¼æÈÝ£¬²»È»£¬ÄãµÄÍøÒ³¿ÉÄÜÂÒµÄÒ»ËúºýÍ¿£¡ÎÒ¾³£±»ÕâЩ¶«Î÷ÕûµÄ½¹Í·Àöî,ÓÚÊǺôÔÚÍøÉÏÕÒÁËЩ×ÊÁÏ,¼ÓÉÏ×Ô¼ºµ ......