亚洲va欧美va人人爽午夜,高清国产一区,欧美日韩国产成人在线91,精品久久久久久久大神国产

資訊

精準傳達 ? 有效溝通

從品牌網站建設到網絡營銷策劃,從策略到執行的一站式服務

網頁基礎知識 常用div+css(全)

來源:東莞seo優化 | 2012-3-20        瀏覽:6018

網頁基礎知識 常用div+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:top; /*垂直向上對齊*/

vertical-align:bottom; /*垂直向下對齊*/

vertical-align:middle; /*垂直居中對齊*/

vertical-align:text-top; /*文字垂直向上對齊*/

vertical-align:text-bottom; /*文字垂直向下對齊*/


二、CSS內補丁

padding:10px;             上下左右為10像素

padding:10px  20px;   上下為10像素,左右為20像素。

Padding:10px  10px  10px  10px    上右下左為10像素

Padding:10px  10px  10px  上、左右、下為10像素。


三、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-color:#F5E2EC; /*背景顏色*/

background:transparent; /*透視背景*/

background-image : url(/image/bg.gif); /*背景圖片*/

background-attachment : fixed; /*水印固定背景*/

background-repeat : repeat; /*重復排列-網頁默認*/

background-repeat : no-repeat; /*不重復排列*/

background-repeat : repeat-x; /*在x軸重復排列*/

background-repeat : repeat-y; /*在y軸重復排列*/

background-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 /*按下鏈接的格式*/

a:hover /*鼠標轉到鏈接*/


鼠標光標樣式:

鏈接手指 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

漏斗 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; /*右框線*/

以上是建議書寫方式,但也可以使用常規的方式 如下:

border-top-color : #369 /*設置上框線top顏色*/

border-top-width :1px /*設置上框線top寬度*/

border-top-style : solid/*設置上框線top樣式*/

可以縮寫為:border:2px  dashed  #cccccc;  一個2像素虛線灰色的邊框。


其他框線樣式

solid /*實線框*/         dotted /*虛線框*/         double /*雙線框*/

groove /*立體內凸框*/       ridge /*立體浮雕框*/

inset /*凹框*/            outset /*凸框*/


序號 中文說明 標記語法

1 寬度 {width:長度|百分比| auto}

2 高度 {height:數值|auto}

3 浮動 {float:left|right|none}

4 清除 {clear:none|left|right|both}

5 段首空格   {text-indent:數值|inherit}

6 水平對齊 {text-align:left|right|center|justify}

7 陰影顏色 {text-shadow:16位色值}

8 字體行高   {line-height:數值|inherit|normal;}

9 字 間 距   {letter-spacing:數值|inherit|normal}

10行 間 距 {line-height:數值|inherit|normal;}

11 單詞間距 {word-spacing:數值|inherit|normal}

12 字體變形 {font-variant:inherit|normal|small-cps }

13 英文轉換 {text-transform:inherit|none|capitalize|uppercase|lowercase}

14 字體變形 {font-size-adjust:inherit|none}

15 書寫方式 {writing-mode:lr-tb|tb-rl}參數:lr-tb:從左向右,從上往下 tb-rl:從上往下,從右向左。

16 控制顯示 {display:none|block|inline|list-item}

17 控制空白 {white-space:normal|pre|nowarp}

18 目錄列表 {list-style:目錄樣式類型|目錄樣式位置|url}

layout-flow:vertical-ideographic;                     文字豎向排列。

 

 

字體屬性:(font)

大小 {font-size: x-large;}(特大) xx-small;(極小) 一般中文用不到,只要用數值就可以,單位:PX、PD

樣式 {font-style: oblique;}(偏斜體) italic;(斜體) normal;(正常)

行高 {line-height: normal;}(正常) 單位:PX、PD、EM

粗細 {font-weight: bold;}(粗體) lighter;(細體) normal;(正常)

變體 {font-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();}

重復 {background-repeat: no-repeat;}

滾動 {background-attachment: fixed;}(固定) scroll;(滾動)

位置 {background-position: left;}(水平) top(垂直);

簡寫方法 {background:#000 url(..) repeat fixed left top;} /*簡寫·

區塊屬性: (Block) /*這個屬性第一次認識,要多多研究*/

字間距 {letter-spacing: normal;} 數值 /*這個屬性似乎有用,多實踐下*/

對齊 {text-align: justify;}(兩端對齊) left;(左對齊) right;(右對齊) center;(居中)

縮進 {text-indent: 數值px;}

垂直對齊 {vertical-align: baseline;}(基線) sub;(下標) super;(下標) top; text-top; middle; bottom; text-bottom;

詞間距word-spacing: normal; 數值

空格white-space: pre;(保留) nowrap;(不換行)

顯示 {display:block;}(塊) inline;(內嵌) list-item;(列表項) run-in;(追加部分) compact;(緊湊) marker;(標記) table;

inline-table; 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;(數字) lower-roman;(小羅碼數字) 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;

clip: rect(12px,auto,12px,auto) (裁切)

 


<! - - ... - ->  用于html文件中的批注

<a href target=>  指定超鏈結的分割窗口目標

<a href=#錨的名稱>  設定鏈結錨點的名稱

<a href=> 設定超鏈結

<a name=錨的名稱>  錨點名稱

<address>....</address>  電子郵件地址文字格式設定

<b> 粗體字 </b>  粗體字效果

<base target=>  分割窗口默認目標

<basefont size> 更改默認字形大小

<bgsound src=>  加入背景音樂

<big>  顯示大字體

<blink>  閃爍文字效果( ie不適用 )

<body text=  link=  vlink=>  設定文字、鏈結顏色

<body>  顯示本文

<br>  換行

<caption align=>  設定表格標題位置

<caption>...</caption>  為表格加上標題

<center>  置中對齊

<cite>...<cite> 用于引經據典的文字

<code>...</code>  用于列出一段程序代碼

<comment>...</comment>  加上批注

<dd>  設定定義列表的項目解說 

<dfn>...</dfn> 顯示"定義"文字

<dir>...</dir>  列表文字卷標

<dl>...</dl>  設定定義列表的標簽

<dt>  設定定義列表的項目

<em>  強調之用

<font face>  指定字形

<font size>  設定字體大小

<form action=>  設窗體的處理方式

<form method=>   設定窗體之數據傳送方式

<frame marginheight=>  設定架視窗口的上下邊界

<frame marginwidth=>  設定架視窗口的左右邊界

<frame name=>  框架窗口命名

<frame noresize>  鎖住分割窗口的大小

<frame scrolling=>  設定分割窗口的滾動條 (yes,no )

<frame src>  框架內要顯示的文件

<frameset cols=>   將窗口分割成左右垂直的方式

<frameset rows=>   將窗口分割成上下水平的方式

<frameset>...</frameset>  劃分分割窗口

<h1>---<h6> 設定文字標題大小

<head>...</head>  標示文件信息

<hr>  加上分隔線

<html>...</html>  文件的開始與結束

<i>...</i>  斜體字

<img align=>  調整圖形影像的位置 ( top,left,right )

<img alt=>  圖形影像批注 

<img dynsrc= loop=>  加入影片 

<img src= height= width=>  插入圖片并默認圖形大小 

<img hspace=>  插入圖片并默認圖形的左右邊界 

<img lowsrc=>  預載低分辨率圖片功能 

<img src border=>  設定圖片邊界 

<img src=>   插入圖片 

<img vspace=>  插入圖片并默認圖形的上下邊界 

<input type= name= value=>  在窗體中加入輸入字段 

<isindex>...</isindex>  定義查詢用窗體 

<kbd>...</kbd>  表示用戶輸入文字 

<li type>...</li>  列表的項目 ( 可指定符號 ) 

<marquee>...</marquee>  跑馬燈效果 

<menu>...</menu>  條列文字卷標 

<meta name="refresh" content= url=>  自動更新文件內容 

<multiple>   可同時選擇多項的列表欄 

<noframe>  定義不出現分割窗口的文字 

<ol>...</ol>  有序號的列表 

<option>  定義窗體中列表欄的項目 

<p align=>  設定對齊方向 

<p>...</p>  分段  

<person>...</person>  顯示人名 

<pre>...</pre>  使用原有排列 ( 格式化文本內容 )

<samp>...</samp>  用于引用字

<select>...</select> 在窗體中定義列表欄 

<small>...</small> 顯示小字體 

<strike>...</strike>  文字加刪除線  

<strong>...</strong>  用于加強語氣 

<sup>...</sup>  上標字 

<sub>...</sub>  下標字 

<table border=>  調整表格的寬線高度 

<table cellpadding=>  調整數據字段之邊界  

<table cellspacing=>  調整表格線的寬度 

<table height=> 調整表格的高度 

<table width=>  調整表格的寬度 

<table>...</table>  產生表格的卷標 

<td align=> 調整表格字段之左右對齊 

<td bgcolor=>  設定表格字段之背景顏色 

<td colspan rowspan=>  表格字段的合并 

<td nowrap=>  設定表格字段不換行 

<td valign=>  調整表格字段之上下對齊 

<td width=>  調整表格字段寬度 

<td>...</td>  定義表格的數據字段 

<textarea name= rows= cols=>  窗體中加入多少列的文字輸入欄 

<textarea wrap=>  決定文字輸入欄是自動否換行 

<th>...</th>  定義表格的標頭字段 

<title>...</title>  文件標題 

<tr>...</tr>  定義表格美一行 

<tt>...</tt> 打字機字體 

<u>...</u> 文字加底線

<ul type>...</ul>  無序號的列表 ( 可指定符號 )

<var>...</var>  用于顯示變量



網頁基礎知識 常用div+css(全)

—— 添加千度科技微信號 ——

上一條———————

css 字間距離_css 字體字符間距設置
15年 網絡推廣經驗

多一份參考,總有益處

聯系我們,免費獲得專屬《網站策劃方案》及報價

咨詢相關問題或預約面談,可以通過以下方式與我們聯系

全國統一服務熱線:135-8099-7710 / 24小時接聽服務


主站蜘蛛池模板: 本溪| 湖南省| 怀柔区| 利津县| 鹤峰县| 古丈县| 西和县| 灵寿县| 额敏县| 山丹县| 从江县| 莱芜市| 台前县| 泰州市| 和顺县| 荥经县| 西青区| 沈阳市| 凤冈县| 海伦市| 开平市| 商南县| 安顺市| 苍溪县| 平安县| 赣榆县| 应城市| 六盘水市| 桓仁| 吴川市| 十堰市| 汉寿县| 砀山县| 邯郸县| 阿荣旗| 岑溪市| 绥芬河市| 嵊州市| 靖宇县| 香港| 彭泽县|