css樣式標籤

來源:互聯網
上載者:User

標籤:劃線   center   傾斜   repeat   外部連結   osi   ati   vertica   背景色   

背景

;引號結束

background-color:  ;  背景色,樣式表裡優先順序高

background-image:(路徑);  設定背景圖片 在css裡外部連結不用加雙引號

background-attachment:fixed;   背景是固定的  不隨字型的滾動所滾動

background-attachment:scroll;   背景隨字型的滾動

background-repeat;    背景圖片平鋪(no-repeat.不平鋪  repeat-x.橫向平鋪  repeat-y.縱向平鋪)

background-position:center;   背景圖片置中,設定背景圖位置的時候,repeat必須是no-repeat(不平鋪)

background-position:right top;背景圖片放到右上方(方位可以改  左left  右right  上top  下bottom)

background-position:left  ***px  top  ***px ;  (離左邊***像素  離上面***像素(可以設定為負數))

字型

font-family:"字型"

font-size:**px  字型大小

font-weight:bold;  bold是加粗normal是正常字型

font-style:italic;   傾斜

color:顏色;

text-decoration:underlyine  常用底線  none是去掉底線(比如超連結的底線)

text-indent:center;   水平對齊(置中對齊)  left是靠左對齊  right 是靠右對齊

vertical-align:middle; (垂直對齊)置中對齊  top是頂部對齊  bottom是底部對齊 一般設定行高後使用

 

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.