2010-06-16 12 views
1

我的問題是,當我在Internet Explorer 8上灰色文本框出現故障時,我嘗試使用{top:0px}和其他東西,但我無法正確識別它...文本框裏面div在IE下去了

預覽

http://i265.photobucket.com/albums/ii213/omegakenshin/other/rEdHellCorner.jpg

這裏是我的代碼...

<div class="textboxS"> 

<img src="images/textbox_corner.png" alt="redCorner" name="redCorner" width="73" height="77" class="redCorner" /> 

    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tbSMain"> 
    </table> 
    </div> 

和我的CSS ...

.textboxS { 
    width: 550px; 
    margin: 30px 0px 0px 220px; 
    position: relative; 
} 

.tbSMain { 
    position: relative; 
    top: 0px; 
    margin: 0; 
    padding: 0; 
} 

.redCorner { 
    float: right; 
    margin: -33px -30px 0px 0px; 
} 

回答

0

要使用

頂部:0像素;

你需要把位置作爲絕對的:

.tbSMain { 
    position: absolute; 
    top: 0px; 
    margin: 0; 
    padding: 0; 
} 

我還建議改變.redCorner到浮動:左;並相應地調整邊距。負邊際可能會破壞事情。