首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IE8右浮动不工作和

IE8右浮动不工作和
EN

Stack Overflow用户
提问于 2014-06-23 22:01:58
回答 1查看 2.1K关注 0票数 0

这个div不是向右浮动的(它与IE8中的左边框对齐)并且被切断。在IE9,10和所有其他浏览器中都很好。我试着在这里找个解决办法,但没有结果。

代码语言:javascript
复制
    <div id="main" class="wrapper">
<div id="primary" class="site-content">
<div id="content" role="main" class="homeContent">
    <article id="post-6" class="post-6 page type-page status-publish hentry">
<header class="entry-header">
<div class="entry-content">
<div id="homeinnerContent">
   <h1>Charting Client&#8217;s Financial Futures</h1>
   <div id="homeICleft">
   <p>Our mission is to help clients navigate their way through the complexities of an
ever-changing financial world.</p> 
<p>Our approach begins with listening to our clients and helping them identify their
financial goals.</p>
<p>From there, we help our clients develop a complete strategy to meet those goals
through innovative, integrated financial solutions.</p></div>
<div id="homeICright">
<div id="ctabutton1"><a href="/wealth-management/">WEALTH MANAGEMENT</a></div>
<div id="ctabutton2"><a href="/risk-management/">RISK MANAGEMENT</a></div>
</div>
</div>
</div><!-- .entry-content -->
<footer class="entry-meta">         
</footer><!-- .entry-meta -->
</article><!-- #post -->            
    </div><!-- #content -->
</div><!-- #primary -->
</div><!-- #main .wrapper -->

#homeinnerContent {
background: url(images/homeInnerBG.png) #000000 no-repeat;
width: 640px;
height: 270px;
float: right;
border: 2px solid white;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
padding: 15px 0 10px 15px;
color: #FFFFFF;

}

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-06-23 22:17:22

在IE8中,浮子对我来说工作得很好。您可能需要检查是否处于可压缩模式。如果是这样,应该将宽度100%添加到父容器中。看看这个answer

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24375286

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档