CSS網頁美化設計屬性

來源:互聯網
上載者:User

標籤:style   color   io   os   ar   strong   sp   on   c   

一、背景與前景

1.background屬性

background-color--背景顏色

background-image:url() --背景圖片路徑要寫在url()中.

background-attachment:fixed--背景圖固定,字動圖不動.scroll -- 背景與字一起滾動,預設.

background-repeat:repeat--平鋪 no-repeat--不平鋪 repeat-x--橫向平鋪 repeat-y--縱向平鋪.

background-position:top--頂端 right--右邊距  bottom,left,像素

font-family:字型名稱(微軟雅黑,宋體)

font-size:像素(12px,14px,18px),2.5em,200%

font-weight:是否加粗。bold,normal

font-style:是否傾斜。italic,normal

color:

text-decoration:none,underline,overline,line-through

text-align:left,center,right

vertical-align:top,middle,bottom

text-indent:首行縮排量

line-height:行高 1.5-2倍的字型大小

二、邊界與邊框

1.border類:

2.margin類:

3.padding類:

三、列表與方塊

1.width,height,(left,top,right,bottom)只有在絕對位置時可用

2.list-style-type,list-style-image,list-style-position

四、格式與布局

1.position:fixed,absolute,relative

2.z-index:

3.overflow:超出範圍;scroll-出捲軸;hidden-隱藏

4.float:浮動方向。

5.clear:both;

CSS網頁美化設計屬性

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.