我正在使用winSCP连接到学校服务器,我必须上传我的网站。我的网页名为“website_html”。我以前的主页名为“mainpage.html”,但我重命名为“index.html”。我浏览了所有其他页面以确保它们会加载“index.html”而不是“mainpage.html”
由于一些奇怪的原因,这让我感到疯狂,当我点击“logo.png”或“mainpage.png”时,它仍然试图加载“mainpage.html”,即使我刷新了服务器,网页,我把评论放在引发这一点的行上。这是代码:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>David's Music: Contact</title>
<style type = "text/css">
html,body
{
height:100%;
background: url(images/mainBackground.jpg) no-repeat center center fixed;
background-size: cover;
}
hr
{
color: #FFFFFF;
background-color: #FFFFFF;
height: 2px;
}
</style>
</head>
<body style = "background-image:url(images/mainBackground.jpg); background_repeat:no-repeat;">
<div id="container" style="width:100%; height:100%">
<div id="header" style="color:white; width:100%; text-align:center;">
<a href="index.html"><img src = "images/logo.png" alt = "David's Music"></a> *//CLICKING HERE TRIES TO LOAD "mainpage.html"*
<hr>
</div>
<div id="menu" style="color:white;width:19.5%;float:left;">
<a href = "index.html"><img src = "images/mainpage.png" alt = "Main Page"></a> *//CLICKING HERE TRIES TO LOAD "mainpage.html"*
<br>
<a href="repairs.html"><img src = "images/repairs.png" alt = "Repairs"></a>
<br>
<img src = "images/contactus.png" alt = "Contact Us">
<br>
<a href="hours.html"><img src = "images/hours.png" alt = "Hours and Directions"></a>
<br>
<a href="lessons.html"><img src = "images/lessons.png" alt = "Lessons"></a>
<br>
</div>
<div id="content" style = "color:white; height:100%; width:70%; float:left;">
<form style = "color: white;">
First name: <INPUT TYPE = "text" NAME = "firstname">
<br>
Last name: <INPUT TYPE = "text" NAME = "lastname">
<br>
Email Address: <INPUT TYPE = "text" NAME = "email">
<br>
What type of question?
<br>
<INPUT TYPE = "CHECKBOX" NAME = "question" VALUE = "repairs">Repairs.
<br>
<INPUT TYPE = "CHECKBOX" NAME = "question" VALUE = "lessons">Lessons.
<br>
<INPUT TYPE = "CHECKBOX" NAME = "question" VALUE = "other">Other.
<br>
Write your question here:
<br>
<textarea name = "questions" rows="4" cols="50">Write your question here.</textarea>
</form>
<form name="input">
<input type="submit" value="Submit">
</form>
</div>
</div>
</body>
任何想法为何发生这种情况?我的意思是它不是开玩笑,没有任何一行代码可以加载“mainpage.html”...但是它一直试图加载它。