css¾µäÑùʽ
Ò» CSSÎÄ×ÖÊôÐÔ£º
color : #999999; /*ÎÄ×ÖÑÕÉ«*/
font-family : ËÎÌå,sans-serif; /*ÎÄ×Ö×ÖÌå*/
font-size : 9pt; /*ÎÄ×Ö´óС*/
font-style:itelic; /*ÎÄ×ÖбÌå*/
font-variant:small-caps; /*С×ÖÌå*/
letter-spacing : 1pt; /*×Ö¼ä¾àÀë*/
line-height : 200%; /*ÉèÖÃÐиß*/
font-weight:bold; /*ÎÄ×Ö´ÖÌå*/
vertical-align:sub; /*ϱê×Ö*/
vertical-align:super; /*Éϱê×Ö*/
text-decoration:line-through; /*¼Óɾ³ýÏß*/
text-decoration:overline; /*¼Ó¶¥Ïß*/
text-decoration:underline; /*¼ÓÏ»®Ïß*/
text-decoration:none; /*ɾ³ýÁ´½ÓÏ»®Ïß*/
text-transform : capitalize; /*Ê××Ö´óд*/
text-transform : uppercase; /*Ó¢ÎÄ´óд*/
text-transform : lowercase; /*Ó¢ÎÄСд*/
text-align:right; /*ÎÄ×ÖÓÒ¶ÔÆë*/
text-align:left; /*ÎÄ×Ö×ó¶ÔÆë*/
text-align:center; /*ÎÄ×Ö¾ÓÖжÔÆë*/
text-align:justify; /*ÎÄ×Ö·ÖÉ¢¶ÔÆë*/
vertical-alignÊôÐÔ
vertical-align:top; /*´¹Ö±ÏòÉ϶ÔÆë*/
vertical-align:bottom; /*´¹Ö±Ïò϶ÔÆë*/
vertical-align:middle; /*´¹Ö±¾ÓÖжÔÆë*/
vertical-align:text-top; /*ÎÄ×Ö´¹Ö±ÏòÉ϶ÔÆë*/
vertical-align:text-bottom; /*ÎÄ×Ö´¹Ö±Ïò϶ÔÆë*/
¶þ¡¢CSS±ß¿ò¿Õ°×
padding-top:10px; /*Éϱ߿òÁô¿Õ°×*/
padding-right:10px; /*Óұ߿òÁô¿Õ°×*/
padding-bottom:10px; /*ϱ߿òÁô¿Õ°×*/
padding-left:10px; /*×ó±ß¿òÁô¿Õ°×
Èý¡¢CSS·ûºÅÊôÐÔ£º
list-style-type:none; /*²»±àºÅ*/
list-style-type:decimal; /*°¢À²®Êý×Ö*/
list-style-type:lower-roman; /*СдÂÞÂíÊý×Ö*/
list-style-type:upper-roman; /*´óдÂÞÂíÊý×Ö*/
list-style-type:lower-alpha; /*СдӢÎÄ×Öĸ*/
list-style-type:upper-alpha; /*´óдӢÎÄ×Öĸ*/
list-style-type:disc; /*ʵÐÄÔ²ÐηûºÅ*/
list-style-type:circle; /*¿ÕÐÄÔ²ÐηûºÅ*/
list-style-type:square; /*ʵÐÄ·½ÐηûºÅ*/
list-style-image:url(/dot.gif); /*ͼƬʽ·ûºÅ*/
list-style-position:outside; /*͹ÅÅ*/
list-style-position:inside; /*Ëõ½ø*/
ËÄ¡¢CSS±³¾°Ñùʽ£º
background-
Ïà¹ØÎĵµ£º
<!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=utf-8" />
<title>www.zishu.cn< ......
×î¼òµ¥µÄ°ì·¨£º¼ÙÉèÄãÓÐÁ½¸öÑÕÉ«µÄCSSÎļþred.css,green.css,ĬÈÏΪºìÉ«µÄÑùʽ
<link rel="stylesheet" style="text/css" link="red.css" id="colorcss">
<input type="button" name="redcss" value='ºìÉ«' onclick="javascript:document.getElementById('colorcss').href='red.css'">
<input type="butt ......
±¾ÎÄÁоÙÁ˼æÈÝ IE ºÍ FF µØ»»ÐÐ CSS ÍƼöÑùʽ,Ïêϸ½éÉÜÁËword-wrapͬword-breakµØÇø±ð.¼æÈÝ IE ºÍ FF µØ»»ÐÐ CSS ÍƼöÑùʽ£º
×îºÃµØ·½Ê½ÊÇ
word-wrap:break-word; overflow:hidden;
¶ø²»ÊÇ
word-wrap:break-word; word-break:break-all;
Ò²²»ÊÇ
word-wrap:break-word; overflow:auto;
ÕâÖÖ×îºÃµØ·½Ê½,ÔÚ IE ÏÂûÓÐÈ ......
ÔÚasp.netÖУ¬ÓеÄʱºòÒª¶¯Ì¬±ä»»CSS£¬±ÈÈçÓеÄʱºò×ö¸öÐÔ»¯Ò³Ã棬¿ÉÒÔÕâÑù×ö
<head>
<link id="MyStyleSheet" rel="stylesheet" type="text/css" runat="server" />
</head>
Ö®ºó£¬ÔÚÒª¸ü»»CSSµÄÒ³ÃæÖУ¬Ê¹ÓÃÈçÏ´úÂë
Sub Page_Load(Sender As Object, E As EventArgs)
If Not (IsPostBack) ......
1.´ó´óËõ¼õÒ³Ãæ´úÂ룬Ìá¸ßÒ³Ãæä¯ÀÀËÙ¶È,Ëõ¼õ´ø¿í³É±¾;
2.½á¹¹ÇåÎú£¬ÈÝÒ×±»ËÑË÷ÒýÇæËÑË÷µ½£¬ÌìÉúÓÅ»¯ÁËseo
3.Ëõ¶Ì¸Ä°æʱ¼ä¡£Ö»Òª¼òµ¥µÄÐ޸ļ¸¸öCSSÎļþ¾Í¿ÉÒÔÖØÐÂÉè¼ÆÒ»¸öÓгɰÙÉÏǧҳÃæµÄÕ¾µã¡£
4.Ç¿´óµ ......