2013-04-24 55 views
0

我建立了一個網站http://charlottemobiletrainers.com,索引頁面上的主標識爲我使用Chrome顯示,但在Safari中不顯示,並且在任何瀏覽器中都沒有顯示在我的朋友的筆記本電腦上。該照片是一個「.gif」,我將文件改爲「.png」,看看是否改變了一切,但沒有幫助。然後我嘗試重命名文件,因爲我最初使用了「_」,但沒有幫助。我不知道還有什麼要嘗試。爲什麼某些圖片不會在某些瀏覽器中顯示,但其他類似大小和文件的照片卻會顯示?

該圖像目前在我的style.css文件中。這可能是問題嗎?

+0

它是HTML。這就是它設計的方式。 – 2013-04-24 19:34:14

+0

你是什麼意思「該圖像目前在我的style.css文件?」 – brbcoding 2013-04-24 19:35:53

回答

0

你已經非常奇怪地開始了。我會做這樣的:

<div id="featured"> 
    <div class="left"> 
<h3>Mobile Personal Trainers</h3> 
<p>Are you ready for summertime in Charlotte? Let Mobile Trainers help you look and feel your best with a personalized workout program <i>JUST FOR YOU!</i> Our personal trainers will go wherever you want whenever you want. Let's get started!</p> 
    <input type="button" value="Get Started!" onclick="parent.location='contact.html'"> 
</div> 
<div class="right"> 
    <img src="logo.png" width="blah" height="blah" alt=""/> 
</div> 

然後設置#feature你希望它是那麼設置類.right到任何寬度的標誌是寬度和高度以及剩餘寬度設定到.left類。

+0

另外,爲什麼當你沒有任何html5標籤時使用html5:P – MaxwellLynn 2013-04-24 19:44:18

+0

而且你可以刪除所有的填充,除了填充底部的特徵 – MaxwellLynn 2013-04-24 19:46:54

相關問題