1.background-position:top|center|bottom || left|center|right (背景图片定位)
2.background-position:x y background-position:x 一个值左右,上下居中
两者混合用必须x在前,y在后
3.background-attachment : scroll | fixed (背景附着)
scroll : 背景图像是随对象内容滚动fixed : 背景图像固定
4.background: rgba(0,0,0,0.3);
如果div有一个颜色,div里面包含一张背景图片,则只能对div有效,背景图片消失
如果使用 opacity属性,div 和背景图片都改变透明度 语法:选择器{opacity:0.5;}
5. 1. 文字水平居中是 textalign: center
2. 盒子水平居中 左右margin 改为 auto
6.表格单元格边框合并table{ bordercollapse:collapse; }
7.radius 半径(距离)
语法格式:
border-radius: 左上角 右上角 右下角 左下角;