企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
>### 1.背景 ~~~ 背景颜色:background-color 背景图片: background-image: url("images/icon1.png"); 背景重复:background-repeat 背景位置:background-position: x y //第一个参数表示离x轴的距离,y表示离y轴的距离 //简写 background: color image repeat position 背景吸附:background-attachment:fixed | scroll background-size //指定背景图片大小。 background-size: x y; //x表示宽度,y表示高度 background-size:cover; 此时会保持图像的纵横比并将图像缩放成将完全覆盖背景定位区域的最小大小。 相当于background-size:100% 100%; 背景的简写 background:color image repeat position background: red url("images/icon1.png") no-repeat center center;