-2

実際、私は自分のゲームサイトの1つのテンプレートをデザインしました。ゲームをプレイすると、IE9で問題が発生しますが、他のブラウザでは問題は発生しません。問題を明確に理解するには、こちらをご覧ください

ここに画像の説明を入力してください 再生ページコード:

<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>
4

1 に答える 1

1

の最初の子に追加width: 390pxします。content

フローティング要素を使用する場合は、常にそれらを設定する必要がありますwidth

于 2012-08-29T15:05:52.910 に答える