網(wǎng)頁基礎(chǔ)知識,常用div+css(全)_第1頁
網(wǎng)頁基礎(chǔ)知識,常用div+css(全)_第2頁
網(wǎng)頁基礎(chǔ)知識,常用div+css(全)_第3頁
網(wǎng)頁基礎(chǔ)知識,常用div+css(全)_第4頁
網(wǎng)頁基礎(chǔ)知識,常用div+css(全)_第5頁
免費預(yù)覽已結(jié)束,剩余1頁可下載查看

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、此文為網(wǎng)上收集整理的。一 css文字屬性:color : #999999; /*文字顏色*/font-family : 宋體,sans-serif; /*文字字體*/ font-size : 9pt; /*文字大小*/ font-style:itelic; /*文字斜體*/ font-variant:small-caps; /*小字體*/ letter-spacing : 1pt; /*字間距離*/ line-height : 200%; /*設(shè)置行高*/ font-weight:bold; /*文字粗體*/ vertical-align:sub; /*下標字*/ vertical-align

2、: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; /*文字右對齊*/

3、text-align:left; /*文字左對齊*/ text-align:center; /*文字居中對齊*/ text-align:justify; /*文字分散對齊*/ vertical-align:top; /*垂直向上對齊*/ vertical-align:bottom; /*垂直向下對齊*/ vertical-align:middle; /*垂直居中對齊*/ vertical-align:text-top; /*文字垂直向上對齊*/ vertical-align:text-bottom; /*文字垂直向下對齊*/二、css內(nèi)補丁padding:10px; 上下左右為10像素padd

4、ing:10px 20px; 上下為10像素,左右為20像素。padding:10px 10px 10px 10px 上右下左為10像素padding:10px 10px 10px 上、左右、下為10像素。三、css符號屬性:list-style-type:none; /*不編號*/ list-style-type:decimal; /*阿拉伯數(shù)字*/ list-style-type:lower-roman; /*小寫羅馬數(shù)字*/ list-style-type:upper-roman; /*大寫羅馬數(shù)字*/ list-style-type:lower-alpha; /*小寫英文字母*/ li

5、st-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-color:#f5e2ec; /*背景顏色*/ b

6、ackground:transparent; /*透視背景*/ background-image : url(/image/bg.gif); /*背景圖片*/ background-attachment : fixed; /*浮水印固定背景*/ background-repeat : repeat; /*重復(fù)排列-網(wǎng)頁默認*/ background-repeat : no-repeat; /*不重復(fù)排列*/ background-repeat : repeat-x; /*在x軸重復(fù)排列*/ background-repeat : repeat-y; /*在y軸重復(fù)排列*/ background

7、-position : 90% 90%; /*背景圖片x與y軸的位置*/ background-position : top; /*向上對齊*/ background-position : buttom; /*向下對齊*/ background-position : left; /*向左對齊*/ background-position : right; /*向右對齊*/ background-position : center; /*居中對齊*/五、css連接屬性:a /*所有超鏈接*/ a:link /*超鏈接文字格式*/ a:visited /*瀏覽過的鏈接文字格式*/ a:active

8、/*按下鏈接的格式*/ a:hover /*鼠標轉(zhuǎn)到鏈接*/鼠標光標樣式:鏈接手指 cursor: hand 十字體 cursor:crosshair 箭頭朝下 cursor:s-resize 十字箭頭 cursor:move 箭頭朝右 cursor:move 加一問號 cursor:help 箭頭朝左 cursor:w-resize 箭頭朝上 cursor:n-resize 箭頭朝右上 cursor:ne-resize 箭頭朝左上 cursor:nw-resize 文字i型 cursor:text 箭頭斜右下 cursor:se-resize 箭頭斜左下 cursor:sw-resize 漏

9、斗 cursor:wait 光標圖案(ie6) p cursor:url(光標文件名.cur),text;六、css框線一覽表:border-top : 1px solid #6699cc; /*上框線*/ border-bottom : 1px solid #6699cc; /*下框線*/ border-left : 1px solid #6699cc; /*左框線*/ border-right : 1px solid #6699cc; /*右框線*/ 以上是建議書寫方式,但也可以使用常規(guī)的方式 如下:border-top-color : #369 /*設(shè)置上框線top顏色*/ border

10、-top-width :1px /*設(shè)置上框線top寬度*/ border-top-style : solid/*設(shè)置上框線top樣式*/ 可以縮寫為:border:2px dashed #cccccc; 一個2像素虛線灰色的邊框。其他框線樣式solid /*實線框*/ dotted /*虛線框*/ double /*雙線框*/ groove /*立體內(nèi)凸框*/ ridge /*立體浮雕框*/ inset /*凹框*/ outset /*凸框*/序號 中文說明 標記語法 1 寬度 width:長度|百分比| auto 2 高度 height:數(shù)值|auto 3 浮動 float:left|ri

11、ght|none 4 清除 clear:none|left|right|both 5 段首空格 text-indent:數(shù)值|inherit 6 水平對齊 text-align:left|right|center|justify 7 陰影顏色 text-shadow:16位色值 8 字體行高 line-height:數(shù)值|inherit|normal; 9 字 間 距 letter-spacing:數(shù)值|inherit|normal 10行 間 距 line-height:數(shù)值|inherit|normal;11 單詞間距 word-spacing:數(shù)值|inherit|normal 12 字

12、體變形 font-variant:inherit|normal|small-cps 13 英文轉(zhuǎn)換 text-transform:inherit|none|capitalize|uppercase|lowercase 14 字體變形 font-size-adjust:inherit|none 15 書寫方式 writing-mode:lr-tb|tb-rl參數(shù):lr-tb:從左向右,從上往下 tb-rl:從上往下,從右向左。16 控制顯示 display:none|block|inline|list-item 17 控制空白 white-space:normal|pre|nowarp 18 目

13、錄列表 list-style:目錄樣式類型|目錄樣式位置|url layout-flow:vertical-ideographic; 文字豎向排列。字體屬性:(font)大小 font-size: x-large;(特大) xx-small;(極小) 一般中文用不到,只要用數(shù)值就可以,單位:px、pd樣式 font-style: oblique;(偏斜體) italic;(斜體) normal;(正常)行高 line-height: normal;(正常) 單位:px、pd、em粗細 font-weight: bold;(粗體) lighter;(細體) normal;(正常)變體 font-

14、variant: small-caps;(小型大寫字母) normal;(正常)大小寫 text-transform: capitalize;(首字母大寫) uppercase;(大寫) lowercase;(小寫) none;(無)修飾 text-decoration: underline;(下劃線) overline;(上劃線) line-through;(刪除線) blink;(閃爍)文字字體: (font-family)背景屬性: (background)色彩 background-color: #ffffff;圖片 background-image: url();重復(fù) backgro

15、und-repeat: no-repeat;滾動 background-attachment: fixed;(固定) scroll;(滾動)位置 background-position: left;(水平) top(垂直);簡寫方法 background:#000 url(.) repeat fixed left top; /*簡寫區(qū)塊屬性: (block) /*這個屬性第一次認識,要多多研究*/字間距 letter-spacing: normal; 數(shù)值 /*這個屬性似乎有用,多實踐下*/對齊 text-align: justify;(兩端對齊) left;(左對齊) right;(右對齊)

16、 center;(居中)縮進 text-indent: 數(shù)值px;垂直對齊 vertical-align: baseline;(基線) sub;(下標) super;(下標) top; text-top; middle; bottom; text-bottom;詞間距word-spacing: normal; 數(shù)值空格white-space: pre;(保留) nowrap;(不換行)顯示 display:block;(塊) inline;(內(nèi)嵌) list-item;(列表項) run-in;(追加部分) compact;(緊湊) marker;(標記) table; inline-tabl

17、e; table-raw-group; table-header-group; table-footer-group; table-raw; table-column-group; table-column;table-cell; table-caption;(表格標題) /*display 屬性的了解很模糊*/列表屬性: (list-style)類型list-style-type:disc;(圓點) circle;(圓圈) square;(方塊) decimal;(數(shù)字) lower-roman;(小羅碼數(shù)字) upper-roman; lower-alpha; upper-alpha;位置

18、list-style-position: outside;(外) inside;圖像list-style-image: url(.);定位屬性: (position)position: absolute; relative; static;visibility: inherit; visible; hidden;overflow: visible; hidden; scroll; auto;clip: rect(12px,auto,12px,auto) (裁切) 用於html文件中的註解 指定超鏈結(jié)的分割視窗目標 設(shè)定鏈結(jié)錨點的名稱 設(shè)定超鏈結(jié) 錨點名稱 . 電子郵件位址文字格式設(shè)定 粗體字 粗體字效果 分割視窗預(yù)設(shè)目標 更改預(yù)設(shè)字形大小 加入背景音樂 顯示大字體 閃爍文字效果( ie不適用 ) 設(shè)定文字、鏈結(jié)顏色 顯示本文 換行 設(shè)定表格標題位置 . 為表格加上標題 置中對齊 . 用於引經(jīng)據(jù)典的文字 . 用於列出一段程式碼 . 加上註解 設(shè)定定義列表的項目解說 . 顯示定義文字 . 列表文字標籤 . 設(shè)定定義列表的標籤 設(shè)定定義列表的項目 強調(diào)之用 指定字形 設(shè)定字體大小 設(shè)表單的處理方式 設(shè)定表單之資料傳送方式 設(shè)定架視視窗的上下邊界 設(shè)定架視視窗的左右邊界 框架視窗命名 鎖住分割視窗的大小 設(shè)定分割視窗的捲軸 (yes,no ) 框架內(nèi)要顯示的文件 將視窗分割成

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論