2012-08-08 107 views
-3

我有一点奇怪的问题。我正在为我的网站设计一个主页,并且已将我的index.html文件发送给我的朋友进行更正。
他纠正并将其发回。我已将此更正后的index.html复制到我的项目文件夹中。为什么不同的名字给了我不同的结果?

问题是,如果我将名称保留为index.html,它无法正常工作:图片放置不正确。但如果我替换index.htmlindex1.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,那么这是行不通的。为什么?

+0

定义“不起作用”更详细。 – deceze 2012-08-08 09:57:43

+1

缓存可能?清除缓存。 – 2012-08-08 09:57:48

+0

我如何清除? – 2012-08-08 10:01:34

回答

2

使用这个URL来浏览缓存。它应该使用相同的名称。

+0

不,它不起作用 – 2012-08-08 10:15:08

+0

@dato:工作文件夹中是否有任何其他文件或重复的文件? – 2012-08-08 10:18:17

+0

没有在工作文件夹没有,有一个大文件夹,并在这个大文件夹另一个2文件夹,但那里放置index.html,没有其他文件具有相同的名称 – 2012-08-08 10:20:07

相关问题