CSS 背景属性
一、定义
专为HTML设置背景
二、详解
- background-color
- background-image
- background-repeat
- background-position
background-color: cornflowerblue
background-image: url('1.jpg');
background-repeat: no-repeat;(repeat:平铺满)
background-position: right top(20px 20px);
background:#ffffff url('1.png') no-repeat right top;