Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/69.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
Image 图像未显示在父div中_Image_Html - Fatal编程技术网

Image 图像未显示在父div中

Image 图像未显示在父div中,image,html,Image,Html,这是垃圾箱。我链接到的internet上的一个图像没有显示在Netbeans IDE v7.2上,但出于某种原因,它在jsBin中运行良好 img: <a href=""><img id='logo' src="http://www.logomaker.com/logo-images/3518dfc2d4b42754.gif" alt="logo maker logo creator"/></a> 编辑: 截图: 您将无法将本地主机置于联机的任何位置。你能做

这是垃圾箱。我链接到的internet上的一个图像没有显示在Netbeans IDE v7.2上,但出于某种原因,它在jsBin中运行良好

img:

<a href=""><img id='logo' src="http://www.logomaker.com/logo-images/3518dfc2d4b42754.gif" alt="logo maker logo creator"/></a>
编辑: 截图:


您将无法将本地主机置于联机的任何位置。你能做个截图吗?我会的。我知道我不会把localhost放到网上。我不确定Logomaker.com是否喜欢你在他们的服务器上热链接图片,更不用说这对你的网站本身的速度和搜索引擎优化都不好。如果您将图像保存在本地(您应该这样做),并将其包括在内,是否会出现相同的问题?我不知道。我没有试过。只是没有包括主机名。如果HTML文件位于C:\Website中,而名为“logo.jpg”的图像位于C:\Website\images中,则可以使用
。或者,您可以使用
,但这显然是错误的做法,因为您的计算机无法从web访问,因此您的访问者在使用我提到的第一种方式时都无法以这种方式查看图像。顺便说一下,链接也是一样,不包括localhost,以后也不必替换所有链接。
#banner {
    background: white;
    position: fixed;
    width: 100%;
    height: 150px;
}
#logo {
    border: 0px;
}