开发者社区> 问答> 正文

如何让火狐上和IE显示一致? 火狐浏览器中top显示不正常。

<html>
<style>
.subtitle
    {
        width:100%;
        height:32px;
        position:absolute;
    }
.subtitle1
    {
        width:4px;
        height:32px;
        position:absolute;
        background-color:red;
    }

.subtitle p
    {
        position:absolute;
        top:4px;
        left:10px;
        font-size:24px;
    }
*{margin:0;border:0;padding:0;}
</style>

<div class='subtitle'>
    <div class='subtitle1'></div>
    <p>景观</p>
</div>

</html>

screenshot

展开
收起
杨冬芳 2016-06-12 11:02:23 2173 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
WEB浏览器中即将发生的安全变化 立即下载
基于浏览器的实时构建探索之路 立即下载
基于浏览器的实时构建探索之路--玄寂 立即下载