手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

background image 自适应宽高

时间:2024-10-12 16:14:36

1、background image 自适应宽高的两个要点:

background image 自适应宽高

2、新建HTML文档,定义一个指定宽高的容器

background image 自适应宽高

3、设置背景图,禁止重复

background image 自适应宽高

4、保存文件,查看未设置background-size的效果

background image 自适应宽高

5、指定背景图尺寸宽高均为容器的100%

background image 自适应宽高

6、保存之后,查看设置background-size的显示效果

background image 自适应宽高
© 手抄报圈