




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、CSS網(wǎng)頁樣式大全如下:字體屬性:(font)大小font-size:x-large;(特大)xx-small;(極小)一般中文用不到,只要用數(shù)值就可以,單位:PX、PD樣式font-style:oblique;(偏斜體)italic;(斜體)normal;(正常)行高line-height:normal;(正常)單位:PX、PD、EM粗細(xì)font-weight:bold;(粗體)lighter;(細(xì)體)normal;(正常)變體font-variant:small-caps;(小型大寫字母)normal;(正常)大小寫text-transform:capitalized首字母大寫)upper
2、case;(大寫)lowercase;(小寫)none;(無)修飾text-decoration:underline;(下劃線)overline;(上劃線)line-through;(刪除線)blink;(閃爍)常用字體:(font-family)"CourierNew",Courier,monospace,"TimesNewRoman",Times,serif,Arial,Helvetica,sans-serif,Verdana背景屬性:(background)色彩background-color:#FFFFFF;圖片background-image:
3、url();重復(fù)background-repeat:no-repeat;滾動(dòng)background-attachment:fixed;(固定)scroll;(滾動(dòng))位置background-position:left(水平)top(垂直);簡寫方法background:#。url(.)repeatfixedlefttop;區(qū)塊屬性:(Block)字間距l(xiāng)etter-spacing:normal;數(shù)值對(duì)齊text-align:justify;(兩端對(duì)齊)left;(左對(duì)齊)right;(右對(duì)齊)center;(居中)縮進(jìn)text-indent:數(shù)值px;垂直對(duì)齊vertical-align:bas
4、eline;基線)sub;(下標(biāo))super;(下標(biāo))top;text-top;middle;bottom;text-bottom;詞間距word-spacing:normal;數(shù)值空格white-space:pre;(保留)nowrap;(不換行)顯示display:block;(塊)inline;(內(nèi)嵌)list-item;(列表項(xiàng))run-in;(追加部分)compact;(緊湊)marker;(標(biāo)記)table;inline-table;table-raw-group;table-header-group;table-footer-group;table-raw;table-colum
5、n-group;table-column;table-cell;table-caption;(表格標(biāo)題)方框?qū)傩裕海˙ox)width:;height:;float:;clear:both;margin:;padding:;順序:上右下左邊框?qū)傩裕海˙order)border-style:dotted;(點(diǎn)線)dashed;(虛線)solid;double;(雙線)groove;(槽線)ridge;(脊?fàn)睿﹊nset;(凹陷)outset;border-width:;邊框?qū)挾萣order-color:#;簡寫方法border:widthstylecolor;列表屬性:(List-style)類
6、型list-style-type:disc;(圓點(diǎn))circle;(圓圈)square;(方塊)decimal;(數(shù)字)lower-roman;(小羅碼數(shù)字)upper-roman;lower-alpha;upper-alpha;位置list-style-position:outside;(夕卜)inside;圖像list-style-image:url(.);定位屬性:(Position)Position:absolute;relative;static;visibility:inherit;visible;hidden;overflow:visible;hidden;scroll;auto
7、;clip:rect(12px,auto,12px,auto)(裁切)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;te
8、xt-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;vertic
9、al-align:text-bottom;二、CSS邊框空白padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;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:
10、square;list-style-image:url(/dot.gif);list-style-position:outside;list-style-position:inside;四、CSS背景樣式:background-color:#F5E2EC;background:transparent;background-image:url(/image/bg.gif);background-attachment:fixed;background-repeat:repeat;background-repeat:no-repeat;background-repeat:repeat-x;backg
11、round-repeat:repeat-y;指定背景位置background-position:90%90%;background-position:top;background-position:buttom;background-position:left;background-position:right;background-position:center;五、CSS連接屬性:aa:linka:visiteda:activea:hover鼠標(biāo)光標(biāo)樣式:鏈接手指CURSOR:hand十字體cursor:crosshair箭頭朝下cursor:s-resize十字箭頭cursor:move
12、箭頭朝右cursor:move力口一問號(hào)cursor:help箭頭朝左cursor:w-resize箭頭朝上cursor:n-resize箭頭朝右上cursor:ne-resize箭頭朝左上cursor:nw-resize文字I型cursor:text箭頭斜右下cursor:se-resize箭頭斜左下cursor:sw-resize漏斗cursor:wait光標(biāo)圖案(IE6)pcursor:url("光標(biāo)文件名.cur"),text;六、CSS框線一覽表:border-top:1pxsolid#6699cc;border-bottom:1pxsolid#6699cc;bo
13、rder-left:1pxsolid#6699cc;border-right:1pxsolid#6699cc;以上是建議書寫方式,但也可以使用常規(guī)的方式如下:border-top-color:#369border-top-width:1pxborder-top-style:solid其他框線樣式soliddotteddoublegrooveridgeinsetoutset七、CSS表單運(yùn)用:文字方塊按鈕復(fù)選框選擇鈕多行文字方塊下拉式菜單選項(xiàng)1選項(xiàng)2八、CSS邊界樣式如下:margin-top:10px;margin-right:10px;margin-bottom:10px;margin-le
14、ft:10px;CSS屬性:字體樣式(FontStyle)序號(hào)中文說明標(biāo)記語法1 字體樣式font:font-stylefont-variantfont-weightfont-sizefont-family2字體類型font-family:"字體1","字體2","字體3",.3 字體大小font-size:數(shù)值|inheritlmediumllargellargerlx-largelxx-largelsmalllsmallerlx-smalllxx-small4 字體風(fēng)格font-style:inheritlitaliclnorma
15、lloblique5 字體粗細(xì)font-weight:100-900lboldlbolderllighterlnormal;6字體顏色color:數(shù)值;7陰影顏色text-shadow:16位色值8 字體行高line-height:數(shù)值linheritlnormal;9 字間距l(xiāng)etter-spacing:數(shù)值linheritlnormal10 單詞間距word-spacing:數(shù)值linheritlnormal11 字體變形font-variant:inherit|normal|small-cps12 英文轉(zhuǎn)換text-transform:inherit|none|capitalize|up
16、percase|lowercase13 字體變形font-size-adjust:inherit|none14字體font-stretch:condensed|expanded|extra-condensed|extra-expanded|inherit|narrower|normal|semi-condensed|semi-expanded|ultra-condensed|ultra-expanded|wider文本樣式(TextStyle)序號(hào)中文說明標(biāo)記語法1 行間距l(xiāng)ine-height:數(shù)值|inherit|normal;2 文本修飾text-decoration:inherit|n
17、one|underline|overline|line-through|blink3 段首空格text-indent:數(shù)值|inherit4 水平對(duì)齊text-align:left|right|centerljustify5垂直對(duì)齊vertical-align:inherit|top|bottom|text-top|text-bottom|baseline|middle|sub|super6 書寫方式writing-mode:lr-tb|tb-rl背景樣式序號(hào)中文說明標(biāo)記語法1 背景顏色background-color:數(shù)值2 背景圖片background-image:url(URL)|non
18、e3 背景重復(fù)background-repeat:inherit|no-repeat|repeat|repeat-x|repeat-y4 背景固定background-attachment:fixed|scroll5 背景定位background-position:數(shù)值|top|bottom|left|right|center6背影樣式background:背景顏色|背景圖象|背景重復(fù)|背景附件|背景位置框架樣式(BoxStyle)序號(hào)中文說明標(biāo)記語法1 邊界留白margin:margin-topmargin-rightmargin-bottommargin-left2 補(bǔ)白padding:p
19、adding-toppadding-rightpadding-bottompadding-left3 邊框?qū)挾萣order-width:border-top-widthborder-right-widthborder-bottom-widthborder-left-width寬度值:thin|medium|thick|數(shù)值4邊框顏色border-color:數(shù)值數(shù)值數(shù)值數(shù)值數(shù)值:分別代表top、right、bottom>left顏色值5邊框風(fēng)格border-style:none|hidden|inherit|dashed|solid|double|inset|outset|ridge|groove6 邊框border:border-widthborder-stylecolor上邊框border-top:border-top-widthborder-styleco
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 職業(yè)學(xué)院發(fā)展黨員資料袋
- 河南省漯河市本年度(2025)小學(xué)一年級(jí)數(shù)學(xué)統(tǒng)編版專題練習(xí)(下學(xué)期)試卷及答案
- 2025-2030年中國數(shù)字告示數(shù)字標(biāo)牌行業(yè)應(yīng)用前景及投資發(fā)展研究報(bào)告
- 朱自清背影閱讀教學(xué)設(shè)計(jì)
- 觀潮教案八年級(jí)上
- 一級(jí)建筑實(shí)務(wù)模擬習(xí)題(附答案)
- 新能源汽車故障診斷與排除模擬練習(xí)題+答案
- 保健按摩師初級(jí)模擬練習(xí)題(含參考答案)
- 山西省長治市潞州區(qū)長治市第二中學(xué)2025屆高三最后一卷英語試卷含答案
- 2025年安徽省阜陽市太和縣中考二模化學(xué)試題(原卷版+解析版)
- 文件打印流程表格:文件打印申請(qǐng)、審核流程
- 培育五大可信數(shù)據(jù)空間
- (二調(diào))武漢市2025屆高中畢業(yè)生二月調(diào)研考試 語文試卷(含官方答案解析)
- 2025-2030年中國電力行業(yè)發(fā)展前景預(yù)測(cè)與投資戰(zhàn)略規(guī)劃分析報(bào)告
- 20《井岡翠竹》(+公開課一等獎(jiǎng)創(chuàng)新教案)
- 2024年AI大模型產(chǎn)業(yè)發(fā)展與應(yīng)用研究報(bào)告
- Agent視域下的人工智能賦能作戰(zhàn)系統(tǒng)
- 2025年幼兒園家園共育工作計(jì)劃
- 2025年貴州銅仁市玉屏永昇國有資產(chǎn)投資管理有限公司招聘筆試參考題庫附帶答案詳解
- DBJ33T 1271-2022 建筑施工高處作業(yè)吊籃安全技術(shù)規(guī)程
- 基本藥物制度政策培訓(xùn)課件
評(píng)論
0/150
提交評(píng)論