Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 未显示的图像_Html_Css_Image - Fatal编程技术网

Html 未显示的图像

Html 未显示的图像,html,css,image,Html,Css,Image,包含文件“forall.php: * { margin:0px; padding:0px; } body { font-family: verdana; background-image: url(http://local host/Website/imagess/sp.jpg); } #wrapper { width: 1024px; margin-left: 120px; background-color:

包含文件“forall.php:

*
{
margin:0px;
padding:0px;
}



 body
    {
        font-family: verdana;
        background-image: url(http://local host/Website/imagess/sp.jpg);

    }


#wrapper
{
    width: 1024px;
    margin-left: 120px;
    background-color: #ebebeb;
}
#header
{
height:200px;

}

.logo
{
    margin-top: 50px;
    float: left;

height::200px;
    background-image: url(http://local host/Website/imagess/sur99.jpg);


}

#searchbox
{
float:right;
margin-top:100px;

}

#nav{

    clear: both;
height:50px;
    margin-left: 30px;
        background-image: url(http://local host/Website/imagess/s4.jpg);
}
ul#navmenu,ul.submenu1
{
list-style-type:none;
}
ul#navmenu li
{
width:123px;
text-align:center;
position:relative;
float:left;
margin-right:4px;
padding:5px;

}

ul#navmenu a{
text-decoration:none;
display:block;
width:123px;
height:30px;
line-height:30px;

border-radius:5px;
color:white;
font-weight:bold;
margin-top:10px;

}

ul#navmenu .submenu1 a
{
margin-top:3px;
}

ul#navmenu li a:hover
{
background-color:black;
}

ul#navmenu ul.submenu1
{
display:none;
position:absolute;

}

ul#navmenu li:hover .submenu1
{
display:block;
}

.darrow
{
font-size:11pt; 
position:absolute;

top:21px;
right:16px;
color:white;
}


#footer
{
width:1024;
background-color:#696969;

}

我已将根目录从localhost/更改为“localhost/Website”,因为我的索引文件和图像(在imagess文件夹中)位于wamp/www/Website的网站文件夹中 当我在WAMP中运行我的页面时,图像不会显示。 alt文本可见,但图像不可见。 在CSS更改中提供plz帮助

<div id="header">
<div class="logo">

</div>
<div id="searchbox">
<form id="searching">
<input type="text" name="forsearch">
<input type="button" name="search" 

value="search">
</form>
</div>
</div>


同样,对于所有背景图像,url中的localhost中也有一个空格。

This=>
http://local 主持人
我的猜测是基于他在代码下面的评论,即“imagess”带有两个“s”“这是正确的。或者,他洒了几罐库尔艾德@我曾经喝过咖啡,但我很快就把它修好了。我喝了我的键盘!现在我可以用任何语言说话和拼写,同时保持清醒就像:::埃尔维斯:::-OP已经离开了大楼。你为什么要这样做而不是
背景图像:url(../images/image name.jpg)没有理由包含绝对URL,特别是因为它是localhost!没有任何意义。对所有合作的个人。。我的文件夹名是正确的,它的“imagess”请不要查找拼写错误。我在发布问题之前就做了。当我在我的index.php页面中使用“标记”时“文本是可见的。包含图像的div可见。但是有一个坏的图像图标。Alt文本可见。但图像未显示。当我使用代码中显示的内容通过css插入图像时。我想使用css页面将图像插入索引页面。但是我做不到。没有显示我的图像。而其他css属性则得到了完美的应用。
<div id="header">
<div class="logo">

</div>
<div id="searchbox">
<form id="searching">
<input type="text" name="forsearch">
<input type="button" name="search" 

value="search">
</form>
</div>
</div>
background-image: url(http://local host/Website/imagess/sp.jpg);
background-image: url(http://localhost/Website/imagess/sp.jpg);