IE8 Wordpress网站兼容性问题 - 侧边栏显示页面底部

时间:2013-09-28 03:56:58

标签: html css wordpress internet-explorer-8 sidebar

我有这个网站http://www.basketballworkouttips.com/jump-manual-review/,问题是在IE8中查看时,侧边栏会被推到页面底部。但是,如果我从页面中删除评论框,则侧栏显示正常。 我想保留评论框,但我不希望我的侧栏被推下来。

任何想法如何解决这个问题?

以下是评论框代码

<div class="review">
  <div itemtype="http://schema.org/Product" itemscope="">
    <div itemtype="http://schema.org/Review" itemscope="">
      <div class="ta_rating_container ta_box_right" style="width:240px;">
        <div id="ta_rating">
          <div>
            <div>Review of: 
              <span class="title item fn" itemprop="name">
                <a onclick="_gaq.push(['_trackEvent', 'Affiliate Clicks', 'Jump Manual', '/jump-manual-review/-Review Box Link',, false]);" rel="nofollow" href="http://www.basketballworkouttips.com/go/jumpmanual" title="Jump Manual">Jump Manual</a>
              </span>
            </div>
            <div class="clear"></div>
            <dl>
              <div class="clear_space"></div>
              <div class="hr"><hr /></div>
              <div>Reviewed by: 
                <span class="reviewer author byline vcard hcard">
                  <span class="author me fn" itemprop="author">Jesse Parker</span>
                </span>
              </div>
              <dl>
                <dt>Rating:</dt>
                <dd>
                  <div class="ta_rating result rating" itemtype="http://schema.org/Rating" itemscope="" itemprop="reviewRating">
                    <meta content="1" itemprop="worstRating">
                    <meta content="5" itemprop="ratingValue">
                    <meta content="5" itemprop="bestRating">
                    <div class="result" style="width:100%;" title="5">5</div>
                  </div>
                </dd>    
              </dl>
              <div class="clear"></div>
              <div class="clear_space"></div>
              <div class="hr"><hr /></div>
              <h3>Summary:</h3>
              <div class="ta_description summary" itemprop="description">
                <p>
                  <span>The Jump Manual is an effective program that will help you increase your vertical leap. The program is easy to follow and provides one on one coaching from it's author + exclusive 60 day money back guarantee. if you're looking to increase your vertical this program is the best one to go for.
                  </span>
                </p>
              </div>
            </div>
            <div class="rating_btn">
              <a onclick="_gaq.push(['_trackEvent', 'Affiliate Clicks', 'Jump Manual', '/jump-manual-review/-Review Box Button',, false]);" itemprop="url" class="ar_button ar_orange" href="http://www.basketballworkouttips.com/go/jumpmanual" title="Download Jump Manual" rel="nofollow">Download Jump Manual</a>
            </div>
            <div class="clear"></div>
          </div>
        </div>
        <div itemprop="reviewBody">
        <div itemtype="http://schema.org/Thing" itemscope="" itemprop="itemReviewed">
          <meta content="Jump Manual" itemprop="name">
        </div>

1 个答案:

答案 0 :(得分:1)

这看起来像一个嵌套问题。您的侧边栏与#content位于同一个块元素中。因此浮动将无法正常工作。 FireFox和其他浏览器很可能会对其进行自动更正,但IE8是有限的,不会让猜测工作有所帮助。

我会通过放置#sidebar_wrap_right并将其放在与#content相同的级别来解决问题。然后一定要在CSS中添加一个宽度并浮动2个div,然后根据需要添加margin / padding。

我也从未见过下面的标记正在渲染,你可能也有一些无效的HTML和CSS。

<css3-container style="z-index: auto; position: absolute; direction: ltr; top: 5500px; left: 28px;">