css常用标签(1)
1.css背景样式 background-color 背景色 background-image 背景图 url(背景地址) 默认水平垂直都铺满 background-repeat 平铺方式 repeat-x repeat-y repeat(x,y都平铺) no-repeat 都不平铺 background-position :背景位置 x y:number|单词 x : left,center,right y:number : top,center,bottom background-attachment : 背景图随滚动条移动的方式 scroll :默认值(背景位置是按照当前元素进行偏移的) fixed :(背景位置是按照浏览器进行偏移的) 2.css边框样式 border-style :边框样式 solid : 实线 dashed :虚线 dotted : 点线 border-width :边框大小 px ... border-color : 边框颜色 red #f00000 ... 边框也可以针对某一边进行单独设置 :border-left-style:中间是方向 left、right、top、bottom 颜色:透明色 transparent 3.css文字样式 font-family :字体类型 英文、中文 衬线体、非衬线体 注意点: 1.多个字体类型设置的目的 2