css属性类型有:1、html标签;2、CSS文字属性;3、CSS符号属性;4、CSS背景样式;5、CSS表单运用;6、CSS边界样式。
本教程操作环境:windows7系统、css3版,DELL G3电脑。
css属性类型有:
一、html标签
-
...
文字格式化 -
......列塊容器
字體大小變化想輸入的字
字體顏色想輸入的字
#字型變粗想輸入的字
字型變斜想輸入的字
字型加上底線想輸入的字
-
對正中央ㄉ文法
內容
- ##對正左ㄉ文法
內容
##對正右邊ㄉ文法 - 字型刪除線
- 字型設定想輸入的字
- #打字機字型想輸入的字
- #上標想輸入的字
- 下標想輸入的字
- 水平線
- #換行輸入想輸入的字
內容< ;/p>
想輸入的字
超連結連結地的名稱
要顯示的字打這裡網絡郵寄標籤
貼圖
跑馬燈(迴圈) #外部檔案匯入格式標籤CSS外部導入格式:text-align:left; /*文字左對齊*/<link rel="stylesheet" type="text/css" href="/css.css" />直接引用:<style type="text/css"> <!-- id{...} --> </style>javascript - 載入外部.js獨立檔案:<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%; /*設定行高*/
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:center; /*文字居中對齊*/
text-align:justify ; /*文字分散對齊*/list-style-type:upper-roman; /*大寫羅馬數字*/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; /*阿拉伯數字*/
list-style-type:lower-roman ; /*小寫羅馬數字*/
list-style-type:lower-alpha; /*小寫英文字母*/
list-style-type:upper-alpha; /*大寫英文字母*/background-color:#F5E2EC; /*背景顏色*/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-repeat : repeat-y; /*在y軸重複排列*/background:transparent; /*透視背景*/
background-image : url(/image/bg.gif); /*背景圖片*/
background-attachment : fixed; /*浮水印固定背景*/
background-repeat : repeat; /*重複排列-網頁預設*/
background-repeat : no-repeat; / *不重複排列*/
background-repeat : repeat-x; /*在x軸重複排列*/
指定背景位置
######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-top-color : #369 /*設定上框線top顏色*/border-bottom : 1px solid #6699cc; /*下框線*/
border-left : 1px solid #6699cc; /*左框線*/
border-right : 1px solid #6699cc; /*右框線*/
以上是建議書寫方式,但也可以使用常規的方式如下:
solid /*實線框*/border-top-width :1px /*設定上框線top寬度*/
border-top-style : solid/*設定上框線top樣式*/
其他框線樣式
七、CSS表單運用:dotted /*虛線框*/
double /*雙線框*/
groove /*立體內凸框*/
ridge /*立體浮雕框*/
inset /*凹框*/
outset /*凸框*/
- 文字方塊
#按鈕
#複選框
選擇按鈕
多行文字方塊< ;textarea rows="1" name="S1" cols="15">
-
下拉式選單
#
################################################八、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; /*左邊框留空白*/######### ######相關教學推薦:#########CSS影片教學############
以上是css屬性有哪些類型的詳細內容。更多資訊請關注PHP中文網其他相關文章!

Wufoo一直在集成方面非常出色。他們與特定應用程序(例如廣告系列顯示器,MailChimp和Typekit)進行集成,但他們也


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

Atom編輯器mac版下載
最受歡迎的的開源編輯器

ZendStudio 13.5.1 Mac
強大的PHP整合開發環境

SublimeText3漢化版
中文版,非常好用

WebStorm Mac版
好用的JavaScript開發工具

VSCode Windows 64位元 下載
微軟推出的免費、功能強大的一款IDE編輯器