2017-07-02 54 views
0

这是一个我不完全理解的问题。我需要进一步的洞察力,我一直无法在其他地方找到它。缺少索引文件括号IDE

大家好。我在支持IDE中看到一个如下所示的错误http://imgur.com/WccBRtf。我完全不理解这里发生了什么,这是因为我不知道HTML5索引文件究竟是什么。我命名为index.html的文件只是我要运行的网页的主要HTML5代码。该文件内容如下

<head> 
    <!-- Title of webpage --> 
    <title> 

     Name of Guild 

    </title> 

    <!-- Link the CSS file so that the html5 can display it --> 
    <link rel = "Stylesheet" type = "text/CSS" href = "GuildPageStyle.css"> 

</head> 

<!-- Main Body of the page --> 
<body> 







    <!--Post section--> 


    <div class = "PostsSEC"> 




     <!-- The way to display multiple posts is to go through a while loop counting up until all posts have been displayed with the current pots being displayed being equal to the current post in the while loop --> 
     <p id = "PostMain"> 

      *A post* 

     </p> 

     <!--This is not the image, this is box it is in--> 
     <p id = "PostPosterBoxOR"> 

      < ORIGINAL 
      <br /> 
      POSTER 

     </p> 
     <p id = "PostPosterBoxBL"> 



     </p> 

     <!--The next section is totally reliant on a server side language. This is the likes and votes by other powered members of the group--> 





     <div id = "EndMessage">  
     <!-- Message at the end of the posts declaring that it is the end --> 
     <h1 id = "PostsEnd"> 

      That's all the current posts 

     </h1> 



     <!-- Change the something Missing to a link after completion --> 
     <h3 id = "ErrorCheckPostEnd"> 

      Something Missing? 

     </h3> 
     </div> 


    </div> 

    <!--Profile/Users/Follower barier--> 
    <div id = "Bar"> 
    </div> 

    <div id = "BackgroundBlock"> 
    </div> 

    <img src = "http://i.imgur.com/64cUAcH.png" id = "GuildLogo" /> 

    <!--The group of users--> 

    <div id = "Users"> 

    <!--Replace this section with PHP reliant on the users--> 

    </div> 

    <img src = "https://pbs.twimg.com/profile_images/855649567756476416/OHQKYYvY_400x400.jpg" id = "ProfileOne" /> 

    <img src = "https://pbs.twimg.com/profile_images/855649567756476416/OHQKYYvY_400x400.jpg" id = "ProfileTwo" /> 

    <img src = "https://pbs.twimg.com/profile_images/855649567756476416/OHQKYYvY_400x400.jpg" id = "ProfileThree" /> 

    <img src = "https://pbs.twimg.com/profile_images/855649567756476416/OHQKYYvY_400x400.jpg" id = "ProfileFour" /> 

    <img src = "https://pbs.twimg.com/profile_images/855649567756476416/OHQKYYvY_400x400.jpg" id = "ProfileFive" /> 

    <img src = "https://pbs.twimg.com/profile_images/855649567756476416/OHQKYYvY_400x400.jpg" id = "ProfileSix" /> 

    <div id = "BackgroundBlockade"> 
    </div> 

    <p id = "BioBlock"> 
    This is a bio 
    </p> 

</body> 

现在,直到昨天我是完全能够运行该文件在括号中。然后,从我的角度来看,似乎没有任何理由,我无法运行代码。停止工作后,我将HTML5文件的名称更改为index.html,并保持CSS文件完全相同。我不知道发生了什么事,并且一无所知。

我认识到更有经验的程序员,这可能看起来像一个类似于“为什么不运行此代码”的问题,当所有的错误是他们忘记做“std ::”而不是写出“endl ”。我对HTML5非常陌生,并且完全迷失在这里。我感谢你的时间。祝你有个愉快的夜晚。

这里是另一个图像,以帮助

http://imgur.com/QELF7Ts

(是的,我也尝试删除 “HTML5公会页面中将Html.HTML”)

+0

解决方案很简单。请确保您的当前文件夹有一个index.html文件,或者在方括号中打开xxx html文件,然后单击实时预览,否则默认情况下它会尝试查找您的index.html。 – YinchaoOnline

+0

是的,这个问题没有解决。谢谢 – Wavegunner232

+0

我不纠正你。当我说是的时,我并不是想听起来像我不感激你的回应。这就是我如何说“是的,谢谢,现在解决的问题” – Wavegunner232

回答

0

所以我已经解决了这个问题。通过打开项目作为一个文件夹,而不是一个单一的文件,我成功地解决了它。解决问题