简体   繁体   English

Internet Explorer Div对齐问题

[英]Internet explorer Div alignment issue

My code works fine on chrome and firefox but in IE (latest version) , "px" thing is shown in next line. 我的代码在chrome和firefox上工作正常,但在IE(最新版本)中,下一行显示“ px”。 I tried display:inline , that does the trick but disturbs the alignment badly. 我试过display:inline,可以解决问题,但会严重干扰对齐。 Is their any other way by which i can make them align on same line ? 他们可以通过其他任何方式使它们对齐吗? Thanks 谢谢

<div class="dfs_config_group">
    <div class="dfs_config_field_label">Font Size</div>
    <div class="dfs_config_field">
        <div class="dfs_config_append mini">
            <input type="text" name="dg_footer_wrapper_inner[font-size]" value="12">
            <div class="add_on">px</div>
        </div>
    </div>
</div>

尝试使用display:inline-block

我使用style =“ display:inline”,问题已解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM