CSS基础知识快速入门

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

By2011.12.01@@=width(height)+padding+border+margin2.EE:linkE:visitedE:activeE:hoverE:focus2.1CSS1ID#idE.classEF()E:first-linkE:first-letter2.*()E:lang(fr)2.2CSS2.1EFE+FE:beforeE:afterE[foo]E[foo=bar]E[foo~=bar]E[foo|=bar]E:first-child2.2.30,0,0,00,0,0,10,0,1,00,1,0,01,0,0,0color:#f00!important;!important*()()h1:first-child.class[type=“text]:hoverclass#idIDstyle=2.2.301101001000color:#f00!important;!important*()()h1:first-child.class[type=“text]:hoverclass#idIDstyle=2.2.3.listli.listli3.3.1(float)leftright()none3.3.1(float)div1float:nonediv2float:nonediv3float:none()3.3.1(float)div2float:nonediv1float:leftdiv3float:none3.3.1(float)div2float:nonediv1float:rightdiv3float:none3.3.1(float)div1float:leftdiv3float:leftdiv2float:left3.3.1(float)div1float:leftdiv3float:leftdiv2float:left3.3.1(float)div1float:leftdiv3float:leftdiv2float:left3.3.1(float)-clear:both3.3.1(float)-overflow:hidden3.3.1(float)-:after3.3.2(position)absoluterelativefixed()static3.3.2(position)-staticdiv1position:static;div3position:static;div2position:static;top:20px;left:30px;3.3.2(position)-staticdiv1position:static;div3position:static;div2position:static;top:20px;left:30px;top,bottom,left,rightz-index3.3.2(position)-relativediv1position:static;div3position:static;div2position:relative;top:20px;left:30px;3.3.2(position)-relativediv1position:static;div3position:static;div2position:relative;top:20px;left:30px;3.3.2(position)-absolutediv1position:static;div3position:static;div2position:absolute;top:20px;left:30px;3.3.2(position)-absolutediv1position:static;div3position:static;div2position:absolute;top:20px;left:30px;3.3.2(position)-absolutediv1position:static;div3position:static;div2position:absolute;top:20px;left:30px;static3.3.2(position)-absolutediv1position:static;div1.1position:absolute;top:20px;left:30px;3.3.2(position)-absolutediv1position:static;div1.1position:absolute;top:20px;left:30px;3.3.2(position)-absolutediv1position:relative;div1.1position:absolute;top:20px;left:30px;3.3.2(position)-fixeddiv1position:static;div3position:static;div2position:fixed;top:20px;left:30px;3.3.2(position)-fixeddiv1position:static;div3position:static;div2position:fixed;top:20px;left:30px;3.3.3(z-index)3.3.3(z-index)z-index3.3.3(z-index)-div13.3.3(z-index)-div1div23.3.3(z-index)-div1div2div33.3.3(z-index)-div2div3div1position:relative;3.3.3(z-index)-div3div1position:relative;div2position:absolute;3.3.3(z-index)-z-indexdiv3div2position:absolute;z-index:1;div1position:relative;z-index:2;3.3.4(displayvisibility)visibility:visible;display:block;visibility:hidden;display:none;3.3.4(displayvisibility)visibility:visible;display:block;visibility:hidden;display:none;“display”&3.3.4(displayvisibility)div1div2div3div1div2div3display:nonevisibility:hidden3.3.4(displayvisibility)div1div2display:none;div3div1div2visibility:hidden;div3display:nonevisibility:hidden3.3.4(displayvisibility)div1div2display:none;div3div1div2visibility:hidden;div3display:nonevisibility:hidden4.CSSResetHTML://code.ciaoca.cn/html/htmltags.htmlhtml,body,div,ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,p,table,th,td,fieldset,form,input,button,textarea,hr,blockquote,pre{margin:0;padding:0;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:bold;line-height:1em;}ul,ol,dl{list-style-type:none;}fieldset,img{border:none;}table{border-collapse:collapse;table-layout:fixed;empty-cells:show;}address,caption,cite,code,dfn,th{font-style:normal;font-weight:normal;}ins{text-decoration:underline;}del{text-decoration:line-through;}q:before,q:after{content:;}4.CSSReset4.CSSReset*{margin:0;padding:0;}4.CSSReset*{margin:0;padding:0;}2BResetdiv{float:left;}5.CSS5.1-margin:10px15px20px25px;5.CSS5.1-margin:10px15px20px25px;5.CSS5.1-margin:10px15px20px25px;margin:10px;5.CSS5.1-margin:10px15px20px25px;margin:10px;margin:10px15px;5.CSS5.1-margin:10px15px20px25px;margin:10px;margin:10px15px;margin:10px15px20px;5.CSS5.1-padding:10px15px20px25px;margin5.CSS5.1-background:#ff0000url(bg.jpg)no-repeatfixedtopcenter;background:#f00;background:url(bg.jpg)no-repeat;5.CSS5.1-border:1pxsolid#ff0000;border:solid#f00;border:1pxsolid;5.CSS5.1-font:italicbold15px/20px5.CSS5.1-font:italicbold15px/20pxfont:15px;5.CSS5.15.CSS5.1outline,list-style5.CSS5.25.CSS5.25.CSS5.25.CSS5.3bodyullia{color:#f00;}43215.CSS5.3*[type=“text]:hover:first-childul.classclass#idIDJavaScriptjQuery5.CSS5.3.box{padding:10px;}.boxp{color:#333;}.box{padding:10px;color:#333;}5.CSS5.3ul.listlia{border:1pxsolid#ccc;}.lista{border:1pxsolid#ccc;}5.CSS5.3displayvisibilityoverflowpositionfloatclear5.CSS5.3displayvisibilityoverflowpositionfloatcleartopleftwidthheightmarginpaddingborderoutlinebackground5.CSS5.3displayvisibilityoverflowpositionfloatcleartopleftwidthheightmarginpaddin

1 / 107
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功