CSS布局中的一些基礎屬性
剛接觸設計工作的朋友不(bú)得不使用CSS,本文就簡單介紹一些在(zài)使(shǐ)用CSS的時候經常用到(dào)的一些屬性的使用信息,希望對你有所幫助。
一、可設置的CSS屬性包(bāo)括:字體屬(shǔ)性、文本(běn)屬性、顏色及背景屬性(xìng)、邊框屬性、容器屬性(邊距屬性(xìng)、填充屬性)、分類屬性、鼠標屬(shǔ)性。
二、基礎屬性
字體屬性:font-family font-style font-variant font-weight font-size
文本屬性:word-spacing letter-spacing text-decoration vertical-align text-transform
text-align text-indent line-height
顏色背景屬性:color background(background-color background-image background-repeat
background-attachment background-position)
邊框屬性:border(border-top border-right border-bottom border-left)(border-width
border-style border-color)
容器屬性:margin padding width height float clear
分類屬性(xìng):display white-space list-style-type list-style-image list-style-position
list-style
鼠標屬性:auto crosshair default hand move e-resize ne-resize nw-resize n-resize se-resize
sw-resize s-resize w-resize text wait help
三(sān)、CSS布局
CSS盒模型的理解對於CSS布局有很大幫助,每個元(yuán)素都有一個元素盒。HTML布局通(tōng)常(cháng)使用div+CSS,將網頁分為很多方塊,每個(gè)方塊和整個總體都可以各用一個(gè)div容納,然後用CSS對各個div進行布局。常用布局屬性包括:margin padding float clear top right buttom left z-index position
關鍵詞:CSS
閱讀本文後您有什麽感想? 已有 人給出評價!
- 1
- 1
- 1
- 1
- 1
- 1