css常用樣式

格式調整:

 

標籤的位置調整:text-align: center;

 

絕對元素生成: position absolute;

 

margin-right //微調上下左右

 

浮動 float : 上下左右;

 

width :寬

height :高

 


 

樣式調整:

 

字體粗細: font - weight 

                        - size

 

字體格式 text-decoration

 

a:hover { color :  }   //設置獲取鼠標焦點的的樣式

 

外邊寬: margin:     

內邊寬: padding:

 

background:  //背景顏色

 

opacity:0.4;  //整塊元素透明

background - color : rgba(255,255,255,0.3);  //實現背景透明 前三位爲背景色三位

 

background:url(by.jpg);  //設置背景圖

 

background :url(./800.jpg) no-repeat center center;  //自適應div大小

 

 

 

 


CSS3

 

 border-right 邊框樣式

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章