猿问

为什么下面代码图片显示不出来?

<!doctype html>

<html>

<head>

<title>123</title>

<meta charset=utf-8/>

<meta name="keywords" content="123"/>

<meta name="description" content="123">

<style>

body,div,p,h1,h2,h3,h4,h5,h6,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,buton,input,textarea,table,th,td{

margin:0;

padding:0;

}

html,body{

width:100%;

height:100%; 

}

body{

overflow:hidden;

}

.bg-box{

width:100%;

height:100%;

background:url("images/1.jpg") center/cover no-repeat;

}

</style>

</head>

<body>

<div class="bg-box"></div>

<div class="bg-box"></div>

<div class="bg-box"></div>

<div class="bg-box"></div>

</body>

</html>


qq_生活就要屁颠屁颠滴过O_0
浏览 1977回答 2
2回答

自由的气息

url()路径不加引号,问题解决了请采纳,谢谢.

慕斯7206222

没加载出来
随时随地看视频慕课网APP
我要回答