background image 自适应宽高

2025-04-08 03:36:41

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 自适应宽高
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢