css background 复合写法(组合写法)
文章目录
复合模版
background: 颜色(color或image) 位置(position) 是否填充(repeat);
background-size: cover;复合写法例子
例子1
background: url('./images/1.jpg') 100% 100% no-repeat;
background-size: cover;例子2
background: url('./images/1.jpg') 30px 30px no-repeat;
background-size: 40px 40px;
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论