Я пытаюсь запустить свой веб-сайт с моего собственного сервера, используя это: http://fragments.turtlemeat.com/javawebserver.php.CSS не загружается через сервер
Хотя все работает отлично, когда я запускаю свой сайт локально, и когда я запускал его на реальном сервере, я не могу загрузить CSS, пока я запускаю его через свой собственный сервер.
Вот мой HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta content="text/html: charset=utf-8" http-equiv="Content-Type"/>
<title>AddictingJava</title>
<link rel="stylesheet" href="CSS/default.css" type="text/css" />
</head>
<body>
<header>
</header>
<!-- Navigation Start -->
<section class="Nav">
<section class="Logo">
<nav class="HomeLogo">
<a href="index.html" class="HomeLogoLink" title="Home"></a>
</nav>
</section>
<ul>
<li><nav class="GamesButton">
<a href="Games/games.html" class="GamesButtonLink" title="Games"></a></li>
</nav>
<li><nav class="ProfileButton">
<a href="Profile/profile.html" class="ProfileButtonLink" title="Profile"></a></li>
</nav>
<li><nav class="ForumsButton">
<a href="Forums/forums.html" class="ForumsButtonLink" title="Forums"></a>
<ul id="DropNav">
<li><a href="Forums/GeneralDiscussion/generaldiscussion.html" title="General Discussion">General Discussion</a></li>
<li><a href="Forums/Contact/contact.html" title="Contact Us">Contact Us</a></li>
</ul>
</li>
</nav>
<li><nav class="NewsButton">
<a href="News/news.html" class="NewsButtonLink" title="News"></a></li>
</nav>
</ul>
</section>
<nav class="Download">
<a href="http://www.addictingjava.com/Jars/2014-06-21-WorldDomination AJ Client.jar">Get Client</a>
</nav>
<!-- Navigation End -->
<section class="AboutSite">
<article>
<p>AddictingJava is a site dedicated to bringing you a unique experience with minI game sites. We hope to get user feedback as we grow and make the site a very fun place to visit overall. Although it doesn't seem like this site has very much we are currently planning a lot for it, so be sure to check back regularly to see when we update the site.<br><br>
If you wish to download our client click <a href="Games/games.html">here</a> or the Get Client button above.
</article>
</section>
<section class="RecentNews">
<figure class="TopRecentNewsPicture">
<img src="websitepics/newnewspic.png">
</figure>
<article class="TopRecentNews">
<h5>7/7/2014 - Announcment.</h5>
<p>Read all about things we are working on as of today.</p>
</article>
<figure class="MidRecentNewsPicture">
<img src="websitepics/newgamepic.png">
</figure>
<article class="MidRecentNews">
<h5>7/7/2014 - Client added.</h5>
<p>The AddictingJava Client was added.</p>
</article>
<figure class="BotRecentNewsPicture">
<img src="websitepics/newnewspic.png">
</figure>
<article class="BotRecentNews">
<h5>3/14/2014 - Website created!!!!</h5>
<p>The begining of everything.</p>
</article>
</section>
<section class="footer">
<p>© 2014 AddictingJava, Inc. All rights reserved. </p>
</section>
</body>
</html>
Откройте средства разработки своего браузера. Является ли URL для CSS точным? Какой код возвращается? – Celeo