2017-07-02 76 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

所以我已經解決了這個問題。通過打開項目作爲一個文件夾,而不是一個單一的文件,我成功地解決了它。解決問題