css笔记(Css笔记)css笔记(Css笔记)[CSSstylesheet]Definedformat:1,inthe<head><style>CSSstylesheet</style></head>2,createanewCSSfile,writetheCSSstylesheetsequenceinthefile,andtheninthepageby<LinkHref=,"","Type=","Text/CSS","Stylesheet","REL=">mandtointroduceCSSStyledefinitionformat:1,labelname{Thestyleproperty1:value1;Thestyleproperty2:value2;....}*,(P,table,div,span,DL,DD,DT,IMG,etc.){Thestyleproperty1:value1;Thestyleproperty2:value2;....}*youcanfirstspecifywhichclasstheobjectwilluse,,youmustusetheclass=classname3,#IDname{Thestyleproperty1:value1;Thestyleproperty2:value2;....}*youcanfirstsettheobjectusingwhichID,,youmustusetheformoftheID=IDnameCSSstylestandardproperties:First,fontmodificationrelated1,fontsequenceFormat:font-family:fontsequence;Forexample:font-family:bold,italics,arial;2,fontsizeFormat:font-size:fontvalue;Forexample:font-size:20px;/**/fontsizeof20pixelsFont-size:5in;/**/fontsize5inchesFont-size:12pt;/**/fontsizeof12poundsFont-size:5cm;/**/fontsize5cmFont-size:40mm;/**/fontsize40mmFont-size:150%;150%*//*fontsizefortheoriginalsizeFont-size:;80%*//*fontsizefortheoriginalsize3,fontboldFormat:font-weight:style;Forexample:font-weight:bold;/**/.Font-weight:normal;/**/asnormal4,fonttiltFormat:font-style:style;Forexample:font-style:italic;/**/tiltFont-style:normal;/**/asnormal5,fontsizeFormat:text-transform:style;Forexample:text-transform:uppercase;/**/allcapsAlllowercasetext-transform:lowercase;/**/Text-transform:capitalize;/**/initialsText-transform:none;/**/cancelcaseconversion6,rowheightFormat:line-height:rowhighvalue;Forexample:line-height:25px;/*willbesetto25pixelshigh.*thispropertycanalsosetPx,in,Pt,cm,mm,EM,andpercentages7,colorFormat:color:colorvalues;Forexample:color:red;/**/redColor:#00ff00;/**/forgreenColor:rgb(0,0255);/**/toblueColor:rgb(100%,100%,100%)/**/aswhite8,fontdecorationFormat:text-d
css笔记Css笔记 来自淘豆网m.daumloan.com转载请标明出处.