2011-04-04 60 views
0

我是web dev的新手,希望我的代碼足夠。我有一個正在進行的構建,可以在Opera和Firefox中顯示,但在Chrome中不顯示。我是否需要重置瀏覽器樣式表?這是個好主意嗎?Chrome/Chromium中的拉伸圖像在Firefox和Opera中爲正常大小(CSS/HTML)

www.easyrstatistics.com

是網站

但這是代碼片段:HTML

<div class="abouttext"> 
<img class="aboutimage" src="aboutus.png" width=300px height=75px alt="about us"/> 
<p>Ta perum inverum si nientio reperisque pero essit repudae dolo eium faceperum nienisin nem expe nimilibus, consequis ipicidest, nosseni hicipiciendi od ut voloratum volupti nisciis simustectium ut harchilibea ulliquis aut occum alici odipsam enti tempos ad escipsant eaque</p> 
</div> 

和CSS

.aboutimage { 
    float:left; 
    border-style:none; 
    margin: 0.5em 0.5em 0.1em 0em; 
} 

.abouttext { 
    text-align:left; 
    float:left; 
    width:22em; 
} 

由於任何人誰可以幫助

Rosser

回答

0

圍繞您的高度和寬度值使用雙重qoutes,它只是一個數字,px不必聲明。

0
width=300px height=75px 

那些屬性值無效。你想這樣的:

width=300 height=75 

,或者可能會更好:

style="width: 300px; height: 75px;"