为什么我的背景图片没有出现? [英] Why does my background image not appear ?

查看:113
本文介绍了为什么我的背景图片没有出现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

link:[DELETED]



代码:

link: [DELETED]

the code:

.pageTwo{
  background:url("https://images.unsplash.com/2/04.jpg?dpr=1&auto=compress,format&fit=crop&w=1500&h=&q=80&cs=tinysrgb&crop=")
    background-size:cover;
    height:800px;
 
}





我的尝试:



我试过更改高度,宽度,填充。



What I have tried:

I have tried changing the height,width,padding.

推荐答案

可能是因为你错过了之间的分号背景背景大小属性。

Probably because you're missing the semi-colon between the background and background-size properties.
.pageTwo{
    background:url("https://images.unsplash.com/2/04.jpg?dpr=1&auto=compress,format&fit=crop&w=1500&h=&q=80&cs=tinysrgb&crop=");
    background-size:cover;
    height:800px;
 
}



演示 [ ^ ]


这篇关于为什么我的背景图片没有出现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆