我創建了我的index.html頁面以及我的styles.css頁面。當我從Notepadd ++運行它時,它在Chrome上看起來不錯,但在其他瀏覽器IE和Firefox上卻不是。但是當我將它上傳到我的託管站點時,它看起來全部在Chrome上分開,並且仍然在其他兩個瀏覽器上出現混亂。鏈接到我的網站是http://79.170.40.54/romeyb.com/,我已經包含了我的代碼。如何解決跨瀏覽器兼容問題?跨瀏覽器兼容網頁
<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<link rel="stylesheet" href="stylesheets/style.css" type="text/css">
<!--<link rel="stylesheet" href="stylesheets/style-ff.css" type="text/css">-->
</head>
<body>
<br>
<script src="script.js"></script>
<div id="header">
<div id="logo">
<h1><img style="width: 200px; height: 100px;" alt="romeyb" src="images/logo.png"></h1>
<div id="navbar">
<ul>
<li class="home"><a href="index.html">home</a></li>
<li class="about"><a href="about.html">about</a></li>
<li class="blog"><a href="blog.html">blog</a></li>
<li class="resume"><a href="resume.html">resume</a></li>
<li class="contact"><a href="contact.html">contact</a></li>
</ul>
</div><!--navbar closing div-->
</div><!--logo closing div-->
</div><!--header closing div-->
<div class="gap"></div>
<div id="content">
<h1>Welcome to RomeyB.com <br></h1>
<p>Welcome to the website, romeyb.com, created by Romey B. This website is to showcase my skills in HTML and CSS, and content will be added as I go.</p>
<p>I will eventually add Javascript and jQuery to this site and will also design as I go.</p>
<p>I'm also learning Wordpress to become familiar with building websites using the Content Management System (CMS) technology, and to begin blogging in which I will discuss my personal battles with social anxiety, growing up without a father, and growing up as a non-stereotypical Black American.</p>
<p>I hope you enjoy the content that I will be posting here and I thank you for sharing this journey with me.</p>
<br>
</div><!--content closing div-->
<div id="right">
<p>This portion will consists of ads and possibly some updates to the website. Haven't decided yet.</p>
</div><!--right closing div-->
<div id="footer">© 2015 romeyb.com</div><!--footer closing div-->
</body>
</html>
以下是CSS: – 2015-02-17 20:44:21
將圖片包含在圖片中可能會很有幫助 – floor 2015-02-17 20:45:22
從您的服務器下載的CSS似乎有一些虛假的字符。例如:'| #content {' - 這是什麼領先的'|'? – 2015-02-17 20:51:48