CSS網(wǎng)頁(yè)布局所需要了解的CSS基礎(chǔ)知識(shí)
來(lái)源:程序員人生 發(fā)布時(shí)間:2014-05-21 07:25:05 閱讀次數(shù):3115次
一、可設(shè)置的CSS屬性包括:字體屬性、文本屬性、顏色及背景屬性、邊框?qū)傩浴⑷萜鲗傩裕ㄟ吘鄬傩浴⑻畛鋵傩裕⒎诸悓傩浴⑹髽?biāo)屬性。
二、基礎(chǔ)屬性
網(wǎng):http://www.jyygyx.com/
字體屬性: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)頁(yè)分為很多方塊,每個(gè)方塊和整個(gè)總體都可以各用一個(gè)div容納,然后用CSS對(duì)各個(gè)div進(jìn)行布局。常用布局屬性包括:margin padding float clear top right buttom left z-index position。
生活不易,碼農(nóng)辛苦
如果您覺(jué)得本網(wǎng)站對(duì)您的學(xué)習(xí)有所幫助,可以手機(jī)掃描二維碼進(jìn)行捐贈(zèng)