css常用標籤

2021-10-10 16:10:48 字數 1193 閱讀 9479

color : #99999 /文字顏色/

font-family : 宋體,

sans-serif /字型顏色/

font-size : 9pt /字型大小/

line-height : 100% /設定行高/

font-weight : bold /文字粗體/

vertical-align : sub /下標字/

vertical-align : super /上標字/

text-decoration : none /無修飾線/

text-align : right /文字右對齊/

text-align : left /文字左對齊/

text-align : center /內部元素居中/

text-align : justify /文字分散對齊/

vertical-align : middle /垂直居中對齊/

padding-top : 10px /上邊框留空白/

padding-right : 10px /右邊框留空白/

padding-bottom : 10px /下邊框留空白/

padding-left : 10px /左邊框留空白/

background : transparent /透視背景/

background-image : url(/image/bg.jpg) /背景/

background-position : top /向上對齊/

background-position : buttom /向下對齊/

background-position : left /向左對齊/

background-position : bottom /向下對齊/

background-position : right /向右對齊/

background-position : center /居中對齊/

border-top : 1px solid #6699cc /上線框/

border-bottom : 1px solid #6699cc /下線框/

border-left : 1px solid #6699cc /左線框/

border-right : 1px solid #6699c /右線框/

margin-top : 10px /上邊界/

margin-right : 10px /右邊界/

CSS常用標籤

選擇器分為class選擇器和id選擇器 id選擇器編寫樣式以 id名稱,class選擇器則為.class名稱 插入樣式表的方法有三種 外部樣式表 external style sheet 內部樣式表 internal style sheet 內聯樣式 inline style style css樣式...

css常用標籤

1.css背景樣式 background color 背景色 background image 背景圖 url 背景圖位址 預設 會水平垂直都鋪滿背景圖 background repeat 平鋪方式 repeat x x軸平鋪 repeat y y軸平鋪 repeat x,y都進行平鋪,預設值 no...

HTML和CSS常用標籤

背景圖 background image 邊框的樣式 批量建立 父元素 子元素 屬性 span標籤 在行內定義乙個區域,也就是一行內可以被劃分成好幾個區域,從而實現某種特定效果。本身沒有任何屬性。例子logo標籤 g o o g le 標題巢狀的過程中,必須先結束的靠近內容的標題,再按照由內及外的順...