2012-08-29 47 views
-2

其實我已經爲我的一個遊戲網站設計了模板。在我玩遊戲時,iam在IE9中遇到了一些問題,但在其他瀏覽器中沒有問題。爲了清楚的瞭解的問題,請參見this獲得CSS Div問題ie9

enter image description here 播放頁面代碼:

<div style="float:left"> 
<div class="gameContentsurround"> 
<div class="gameContentbg"> 
     <div class="gameDiv"> 
      <div align='center'> 

      <!--game content here-->   
      </div> 
     </div> 
</div> 
<div class="gameboxbelowheight"></div> 
</div> 
<div style='height:5px'></div> 
<div style="clear:both"></div> 
<div class="gameDesc"> 
<!--game description here--> 
</div> 
<div class="moregamesbg"> 
<div class="moregameswhitebg"> 
<!--more games section here--> 
</div> 
</div> 
</div> 
<div style="float:right; width:390px"> 
<!--right column where actual issue comes here in IE9--> 
</div> 

right_column代碼:

<div class="playAdsWhiteBg"> 
    <div class='playAdsDiv'> 
    <center> 
     google ads 

     </center> 
    </div> 

</div> 
<div style="clear:both"></div> 
<div style='height:2px'></div> 
<!-- Ads END --> 

<!-- Ads --> 

<!--<div><?php echo SPONSORS_TITLE;?></div> --> 

<div class="playAdsWhiteBg"> 
    <div class='playAdsDiv'> 
    <center> 
     google ads 

     </center> 
    </div> 
</div> 

<div style="clear:both"></div> 
<div style='height:2px'></div> 
<!-- Ads END --> 

<!-- Comments Section --> 
<div class="playAdsWhiteBg"> 
    <div class='playAdsDiv'> 
    <div style="overflow:scroll"> 
fb comments 
</div> 
</div> 
</div> 

<div style="clear:both"></div> 
<div style='height:2px'></div> 
<!-- Rating Section --> 

<div class="ratethisgameWhiteBg"> 
    <div class='ratethisgameDiv'> 
     rating system 
    </div> 
</div> 
+3

請發表您的** **有關守則所以對我們來說,能夠幫助你。當你在這裏時,也請寫一個適當的問題描述。 – PeeHaa

+1

「iam在IE9中遇到了一些問題,但在其他瀏覽器中沒有問題」有什麼問題? –

+0

哎呀對不起...實際上我添加的圖像和網址也請檢查在ie9的網址。你會知道的.. – phphunger

回答

1

添加width: 390pxcontent的第一個孩子。

當您使用浮動元素,你應該總是在這裏設置自己的width

+0

我已經增加了寬度已經是這樣的。

phphunger

+0

@phphunger請參閱http://i.stack.imgur.com/c8D0M.gif – Oriol

+0

謝謝Oriol,它工作... – phphunger