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

标签 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>

最佳答案

这看起来像是一个嵌套问题。您的侧边栏与您的#content 位于同一 block 元素内。因此 float 将无法正常工作。 FireFox 和其他浏览器很可能会自动更正它,但 IE8 是有限的,不会提供猜测工作以提供帮助。

我会通过放置#sidebar_wrap_right 并将其置于与#content 相同的级别来更正此问题。然后确保在 CSS 中为两者添加宽度,并根据需要向左浮动 2 个 div 添加边距/填充。

我也从来没有看到下面正在渲染的标签,可能你也有一些无效的 HTML 和 CSS。

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

关于html - IE8 Wordpress 网站兼容性问题 - 侧边栏显示在页面底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19063068/

相关文章:

html - 检查 radio 输入

html - 如何将字体 "Balzano"设置为我网站上 <p></p> 中包含的文本?

wordpress - 按自定义字段日期列出自定义帖子类型

php - 如何在wordpress中更改像seo友好的url

javascript - textarea 中的输入不显示为输入的内容

html - 热制作 li :hover Not Move Siblings

javascript - jquery 如何检测文件输入元素的更改?

html - 是否有使用 languages 为非空格删除空格的 CSS 解决方案?

wordpress - 如何将 Google Analytics OnClick 添加到 Wordpress 联系表 7 提交按钮

php - 如何在 CI 中的非对象上获取 num_rows()