通过ie9获取CSS Div问题

时间:2012-08-29 14:21:54

标签: css html

实际上我已经为我的一个游戏网站设计了模板。在我玩游戏的时候我在IE9中遇到了一些问题,但没有其他浏览器的问题。要清楚了解该问题,请参阅this

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>

1 个答案:

答案 0 :(得分:1)

width: 390px添加到content的第一个孩子。

使用浮动元素时,应始终设置width