亚洲最大看欧美片,亚洲图揄拍自拍另类图片,欧美精品v国产精品v呦,日本在线精品视频免费

  • 站長資訊網(wǎng)
    最全最豐富的資訊網(wǎng)站

    css屬性有哪些類型

    css屬性類型有:1、html標(biāo)簽;2、CSS文字屬性;3、CSS符號屬性;4、CSS背景樣式;5、CSS表單運(yùn)用;6、CSS邊界樣式。

    css屬性有哪些類型

    本教程操作環(huán)境:windows7系統(tǒng)、css3版,DELL G3電腦。

    css屬性類型有:

    、html標(biāo)簽

    • <pre>…</pre>文字格式化

    • <div>……</div>列塊容器

    • 字體大小變化 <font size=?>想輸入的字</font>

    • 字體顏色 <font color="…">想輸入的字</font>

    • 字體變粗 <b>想輸入的字</b>

    • 字體變斜 <i>想輸入的字</i>

    • 字體加下劃線 <u>想輸入的字</u>

    • 對正中央ㄉ語法 <p align="center">內(nèi)容</p>

    • 對正左邊ㄉ語法 <p align="left">內(nèi)容</p>

    • 對正右邊ㄉ語法 <p align="right">內(nèi)容 </p>

    • 字體刪除線 <s>想輸入的字</s>

    • 字體設(shè)置 <font face="字體名稱">想輸入的字</font>

    • 打字機(jī)字體 <tt>想輸入的字</tt>

    • 上標(biāo)字 <sup>想輸入的字</sup>

    • 下標(biāo)字 <sub>想輸入的字</sub>

    • 水平線 <hr color="…">

    • 換行輸入 想輸入的字<br>想輸入的字

    • 超鏈接 <a href="想鏈接網(wǎng)址">鏈接地的名稱</a>

    • <a href="mailto:填入email">要顯示的字打這里</a>網(wǎng)絡(luò)郵寄標(biāo)簽

    • 貼圖 <img src="圖形的網(wǎng)址">

    • 跑馬燈(循環(huán)) <marquee behavior=scroll>想輸入的字</marquee>

    外部文件導(dǎo)入格式標(biāo)簽

    CSS外部導(dǎo)入格式:

    <link rel="stylesheet" type="text/css" href="/css.css" />

    直接引用:

    <style type="text/css"> <!-- id{...} --> </style>

    javascript – 加載外部.js獨(dú)立文件:

    <script type="text/javascript" src="/script.js"></script>

    二、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; /*下標(biāo)字*/

    vertical-align:super; /*上標(biāo)字*/

    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屬性

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

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

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

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

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

    三、CSS符號屬性:

    list-style-type:none; /*不編號*/

    list-style-type:decimal; /*阿拉伯?dāng)?shù)字*/

    list-style-type:lower-roman; /*小寫羅馬數(shù)字*/

    list-style-type:upper-roman; /*大寫羅馬數(shù)字*/

    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; /*縮進(jìn)*/

    四、CSS背景樣式:

    background-color:#F5E2EC; /*背景顏色*/

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

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

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

    background-repeat : repeat; /*重復(fù)排列-網(wǎng)頁默認(rèn)*/

    background-repeat : no-repeat; /*不重復(fù)排列*/

    background-repeat : repeat-x; /*在x軸重復(fù)排列*/

    background-repeat : repeat-y; /*在y軸重復(fù)排列*/

    指定背景位置

    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 /*鼠標(biāo)轉(zhuǎn)到鏈接*/

    鼠標(biāo)光標(biāo)樣式:

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

    光標(biāo)圖案(IE6) p {cursor:url("光標(biāo)文件名.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-top-width :1px /*設(shè)置上框線top寬度*/

    border-top-style : solid/*設(shè)置上框線top樣式*/

    其他框線樣式

    solid /*實線框*/

    dotted /*虛線框*/

    double /*雙線框*/

    groove /*立體內(nèi)凸框*/

    ridge /*立體浮雕框*/

    inset /*凹框*/

    outset /*凸框*/

    七、CSS表單運(yùn)用:

    • 文字方塊 <input type="text" name="T1" size="15">

    • 按鈕 <input type="submit" value="submit" name="B1">

    • 復(fù)選框 <input type="checkbox" name="C1">

    • 選擇鈕 <input type="radio" value="V1" checked name="R1">

    • 多行文字方塊 <textarea rows="1" name="S1" cols="15"></textarea>

    • 下拉式菜單 <select size="1" name="D1"><option>選項1</option>

      <option>選項2</option></select>

    八、CSS邊界樣式:

    margin-top:10px; /*上邊界*/

    margin-right:10px; /*右邊界值*/

    margin-bottom:10px; /*下邊界值*/

    margin-left:10px; /*左邊界值*/

    九、CSS邊框空白:

    padding-top:10px; /*上邊框留空白*/

    padding-right:10px; /*右邊框留空白*/

    padding-bottom:10px; /*下邊框留空白*/

    padding-left:10px; /*左邊框留空白*/

    相關(guān)教程推薦:CSS視頻教程

    贊(0)
    分享到: 更多 (0)
    網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號