2013-03-05 58 views
0

我在我的html本文標籤:左對齊img標籤的Internet Explorer,變形父DIV

<img border="0" src="images\Close.gif" alt="بستن" onclick="hideSearchPopUp(id);"/> 

存在最知名的瀏覽器沒有問題,但在Internet Explorer父<div>標籤進入變形。 喜歡這幅畫:

deformed parent div tag

,你可以在這裏看到,父DIV的高度增加和關閉按鈕移到左下方

+0

give access to fiddle .. – sasi 2013-03-05 10:32:53

回答

0

看來,這是IE的一個bug! 我爲父母設置了高度,但直到我設置寬度後才能工作!設置寬度高度成爲現實後,我設置了。

<div id="banner_div" style="overflow: auto; height: 16px; width: 120px;"> 
     <strong style=" float:right;"> 
      جستجو 
     </strong> 
    <img border="0" src="images\Cancel.gif" alt="بستن" onclick="hideSearchPopUp('to1');" align="left"> 
    <img border="0" src="images\loading.gif" alt="در حال جستجو" style="display:none; " align="left" name="loading"> 
</div>