body{
/* 整个网页的背景图片 /
background: url(1.jpg) no-repeat;
background-size: cover;/ 规定背景图像的尺寸 /
font-family: 微软雅黑;/ 为段落设置字体: */
width: 1824px;
height: 1000px;
}
repeat 默认。背景图像将在垂直方向和水平方向重复。
repeat-x 背景图像将在水平方向重复。
repeat-y 背景图像将在垂直方向重复。
no-repeat 背景图像将仅显示一次。
inherit 规定应该从父元素继承 background-repeat 属性的设置。
css背景图片(第五次课)
最新推荐文章于 2024-09-10 22:58:41 发布