Html 我能';我不知道我的背景有什么问题

Html 我能';我不知道我的背景有什么问题,html,css,Html,Css,因此,我想将文件wallpar.png设置为页面的背景,图像与html和css文件位于同一文件夹中 <!DOCTYPE html> <html> <head> <link type="text/css" rel="stylesheethome" href="stylesheethome.css"/> <title>Prism</title> </head> <body> &

因此,我想将文件wallpar.png设置为页面的背景,图像与html和css文件位于同一文件夹中

    <!DOCTYPE html>
<html>
<head>
    <link type="text/css" rel="stylesheethome" href="stylesheethome.css"/>
    <title>Prism</title>
</head>
<body>


</body>
</html>

你的身体是空的,这对于零像素高度是一样的。您可以这样尝试:

 html, body { 
     height: 100%;
 }

祝你好运。

我的问题是这个-

rel="stylesheethome
换成--

stylesheet…
希望这能奏效


更改后,我尝试了它。

尝试在
中为
rel
设置
样式表
,并检查文件名

<link type="text/css" rel="stylesheet" href="stylesheethome.css" />

试试这个。我将rel属性值从stylesheethome更改为stylesheet

<!DOCTYPE html>
<html>
<head>
    <link type="text/css" rel="stylesheet" href="stylesheethome.css"/>
    <title>Prism</title>
</head>
<body>
</body>
</html>

棱镜
stylesheethome不是有效的rel属性值。
希望这能有所帮助。

这对我来说很好,这不是原因请检查此。。身体没有疑问的元素,根据用户提供的数据,我们无法更好地帮助他。如果图像与css和html在同一个文件夹中,那么他正在制作另一个他没有告诉我们的东西。
<!DOCTYPE html>
<html>
<head>
    <link type="text/css" rel="stylesheet" href="stylesheethome.css"/>
    <title>Prism</title>
</head>
<body>
</body>
</html>