綠色資源網(wǎng):您身邊最放心的安全下載站! 最新軟件|熱門排行|軟件分類|軟件專題|論壇轉(zhuǎn)帖|廠商大全

綠色資源網(wǎng)

技術(shù)教程
您的位置:首頁網(wǎng)頁設(shè)計(jì)HTML/CSS → CSS布局中的一些基礎(chǔ)屬性

CSS布局中的一些基礎(chǔ)屬性

我要評(píng)論 2011/09/15 13:10:25 來源:綠色資源網(wǎng) 編輯:downcc.com [ ] 評(píng)論:0 點(diǎn)擊:248次

剛接觸設(shè)計(jì)工作的朋友不得不使用CSS,本文就簡(jiǎn)單介紹一些在使用CSS的時(shí)候經(jīng)常用到的一些屬性的使用信息,希望對(duì)你有所幫助。

一、可設(shè)置的CSS屬性包括:字體屬性、文本屬性、顏色及背景屬性、邊框?qū)傩?、容器屬?邊距屬性、填充屬性)、分類屬性、鼠標(biāo)屬性。

二、基礎(chǔ)屬性

字體屬性: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)

邊框?qū)傩裕篵order(border-top border-right border-bottom border-left)(border-width

border-style border-color)

容器屬性:margin padding width height float clear

分類屬性:display white-space list-style-type list-style-image list-style-position

list-style

鼠標(biāo)屬性:auto crosshair default hand move e-resize ne-resize nw-resize n-resize se-resize

sw-resize s-resize w-resize text wait help

三、CSS布局

CSS盒模型的理解對(duì)于CSS布局有很大幫助,每個(gè)元素都有一個(gè)元素盒。HTML布局通常使用div+CSS,將網(wǎng)頁分為很多方塊,每個(gè)方塊和整個(gè)總體都可以各用一個(gè)div容納,然后用CSS對(duì)各個(gè)div進(jìn)行布局。常用布局屬性包括:margin padding float clear top right buttom left z-index position

關(guān)鍵詞:CSS

閱讀本文后您有什么感想? 已有 人給出評(píng)價(jià)!

  • 1 歡迎喜歡
  • 1 白癡
  • 1 拜托
  • 1 哇
  • 1 加油
  • 1 鄙視