为什么不同的名字给我不同的结果?

时间:2012-08-08 09:56:24

标签: html

我有一个奇怪的问题。我正在为我的网站设计一个主页面,我已将 index.html 文件发送给我的朋友进行更正。
他纠正并将其寄回。我已将此更正的 index.html 复制到我的项目文件夹中。

问题是,如果我将名称保留为 index.html ,则无法正常工作:图片未正确放置。但是,如果我将 index.html 替换为 index1.html 或类似的东西,那么它就可以了。

这是我的代码:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ka-ge" lang="ka-ge" >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<style type="text/css">
#links { 
  postiton:absolute;
    margin: 0 auto; 
    width: 4800px; 
    font-size:50px;
    clear: both; 
    display: block;

}
#test a {
    float: right;
}
a, a:active, a:visited {
    color: yellow;
    a {text-decoration:none;}
}
.image {
    position:relative;
    float:left; /* optional */
}
.image .text {
    position:absolute;
    top:400px; /* in conjunction with left property, decides the text position */
    left:10px;
     font-size:155%;
}
.flagimage {
    position:absolute;
    top:10px; /* in conjunction with left property, decides the text position */
    right:80px;
}
</style>


<body >

<div class="image">
  <img alt="" src="11.gif" />
  <div class="text">
    <a href=" index.html " >მთავარი </a>
&nbsp;
<a href=" ბაკურიანი.html ">ბაკურიანი </a>
&nbsp;
<a href=" გუდაური.html ">გუდაური </a>
&nbsp;
<a href=" ზღვა.html ">ზღვა </a>
&nbsp;
<a href=" კახეთი.html ">კახეთი </a>
&nbsp;
<a href=" სვანეთი.html ">სვანეთი </a>
&nbsp;
<a href=" ვარძია.html ">ვარძია </a>
&nbsp;
<a href=" ქართლი.html ">ქართლი </a>
&nbsp;
<a href=" ძველი_თბილისი.html ">ძველი_თბილისი </a>
&nbsp;
<a href=" დაკავშირება.html ">კონტაქტი </a>
  </div>
</div>

<div class="flagimage">
<a href="eng/index.html"><img src ='english.gif' style="float:right"  width="30" height="30"> </a>
<a href="russ/index.html"><img src ='russian.gif' alt="Russian flag" style="float:right"  width="30" height="30"/></a>
<a href="index.html"> <img src="georgian.jpg"  style="float:right" width="30" height="30"/></a>
</div>
<div id="links">


</div>
</body>
</html>

现在它的名称是 index1.html ,它工作正常,但如果我将其重命名为 index.html ,则它不起作用。为什么呢?

1 个答案:

答案 0 :(得分:2)

使用此URL克隆您的浏览缓存。它应该使用相同的名称。