【发布时间】:2019-03-09 04:07:53
【问题描述】:
我制作了一个运行良好的 html 文件,但是在将其上传到一些免费的域名主机后,一些图像没有加载。 This 是网站,this 是它的样子
<!doctype html>
<html>
<body id="grad1">
<link rel="stylesheet" type="text/css" href="stylenav.css">
<div class="nav" align="right"><font size="4%"><!--NAV BAR-->
<nav>
<font size="3%"><a href="main.html" title="Home" class="navb" target="bottom" id="navb1"><b><img src="icons/home.png" height="30%" width="30%" class="invert"></b></a></font>
<font size="3%"><a href="about.html" class="navb" target="bottom" id="navb2"><b><img src="icons/about.png" height="30%" width="30%" title="About" class="invert"></b></a></font>
<font size="3%"><a href="gallery.html" class="navb" target="bottom" id="navb3"><b><img src="icons/gallery.png" height="30%" width="30%" title="Gallery" class="invert"></b></a></font>
<font size="3%"><a href="favorites.html" class="navb" target="bottom" id="navb4"><b><img src="icons/favorites.png" height="30%" width="30%" title="Favorites" class="invert"></b></a></font>
<font size="3%"><a href="hobbies.html" class="navb" target="bottom" id="navb5"><b><img src="icons/hobbies.svg" height="30%" width="30%" title="Hobbies" class="invert"></b></a></font>
</font>
</nav>
<div align="left" style="margin-top: -5%; color: #eb4979;">
<img src="images/logo.png" height="40%">
<font size="10%"><b><span style=" position: absolute; margin-top: 10; text-shadow: 0 0 3px rgba(0, 0, 0, .8)">Dexter Silva</span></b></font>
</div>
</div>
</body>
</html>
【问题讨论】:
-
你没有上传图片或者图片src是worg
-
我上传了图片。 wdym 通过图像 src?它的位置正确
-
你能把你的代码贴出来,让我们看看哪里出了问题
-
它是一个大文件,所以我放了其中一个损坏的代码
-
Infinityfree 免费套餐有这种问题。曾经我将它用于学校项目并且遇到了很多困难,尤其是从 GSM 模块发送数据到托管页面。使用 Heroku。
标签: html css web error-handling