IE7 div 位置上的 Css 不正确

标签 css internet-explorer-7

enter image description here

Please see the picture above. I try my best to let [div1] in the bottom of [div2] in IE7. but faild.Please help Me. Please see the picture above. I try my best to let [div1] in the bottom of [div2] in IE7. but faild.Please help Me. Please see the picture above. I try my best to let [div1] in the bottom of [div2] in IE7. but faild.Please help Me.

<div style="margin-bottom: 10px;overflow: hidden;font-size:12px;">
    <div style="float:left">
        <img style="width: 30px;height: 30px;border-radius: 100%;vertical-align: middle;" src="http://cdn.5u55.cn/face/u0.jpg"> 
        <div style="margin-top:2px;font-size:9px;">name1</div>
    </div>
    <strong style="float: left; border-style: solid; border-width: 10px; border-color: #fff #d4edf4 #fff #fff; height: 0; font-size: 0; width: 0;margin-top:7px;"></strong>
    <div>
    <div style="float:left;display: inline-block;background-color: #d4edf4;position: relative;padding: 10px;line-height: 18px;border-radius: 4px;color: #333;">
         test test test test test test
    </div>
    <br clear="all" /> 
    <div style="float:left;margin-left:60px;color: #ccc;font-size:9px;">2016-02-17 22:21:00</div>
</div>
<br clear="all" /> 
<br clear="all" /> 
<div style="margin-bottom: 10px;overflow: hidden;font-size:12px;">
    <div style="float:right;display: flex;-webkit-box-orient: horizontal;-webkit-box-direction: normal;flex-direction: row;-webkit-box-pack: end;justify-content: flex-end;padding: 5px;">
        <img style="width: 30px;height: 30px;border-radius: 100%;vertical-align: middle;" alt="" src="http://cdn.5u55.cn/face/u0.jpg">
        <div style="margin-top:2px;font-size:9px;">name2</div>
    </div>
    <strong style="float: right; border-style: solid; border-width: 10px; border-color: #fff  #fff #fff #f1ddde ; height: 0; font-size: 0; width: 0;margin-top:10px;margin-left:-1px;"></strong>
    <div style="float:right;background-color: #f1ddde;position: relative;padding: 10px;line-height: 18px;margin-left:42px;color: #333;">
       dadasd
    </div>
    <br clear="all" /> 
    <div style="float:right;color: #ccc;font-size:9px;margin-right:58px;">2016-02-17 22:21:00</div>
</div>
<br clear="all" /> 
<br clear="all" /> 
<div style="text-align: center;width: 100%;margin: 5px auto;font-size: 10px;margin:0 20px 10px;">
    <p style="color:red;background-color: lightGrey;padding: 5px 10px;border-radius: 5px;">thanks</p>
</div>
</html>

最佳答案

IE 10 及以下版本已死,IE 用户群太低 (2015 December 6,3%) 和 IE 10 and below is only 1,4% .你应该停止为石器时代的人编写简单易懂的代码。顺便说一句,使用内联 CSS 不是一个好的做法,您应该避免这种做法。

关于IE7 div 位置上的 Css 不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35619800/

相关文章:

html - 边框半径不适用于无序列表

html - 具有 rowspan 的 TD 的高度大于内容(嵌套表): 1px diff in border placement of nested tables mimic the same row height of outer table

jquery - IE7 CSS/Jquery 错误(负边距和鼠标悬停突出显示)

html - float div 中 hr 宽度的奇怪 IE7 错误

html - SASS使用屏幕高度来计算设置高度div后剩余的vh

javascript - 页面加载时自动 href 到 div

css - Forms CSS ……这太荒谬了

CSS 垂直对齐 : Browser Quirks

javascript - 通过 html 和 css 为 ie8 调整背景图片大小

internet-explorer - 如何在 IE7 及更早版本中将子元素定位在其父元素之后