IE6双重填充和边距错误

问题描述

| 我在网上四处张望,没有任何效果。 我有一个无序列表的盒子,ie6使padding和margin倍大
.block {
    width: 236px;
    float: left;
    border: 1px solid #cecece;
    background: url(images/list_bg.png) repeat-y;

}

.block li {
        width: 237px;
        height: 74px;
        background: url(images/arrow.png) no-repeat 0px 13px,url(images/bottom.png) left bottom no-repeat;
        margin-left: 30px;
        padding: 0px 20px;
        list-style: none;
        line-height: 36px;

    } 
如果我添加显示内联会中断,那我在做什么错呢?     

解决方法

您的框比其中的列表项窄。 你应该看看盒子模型     ,有时ie6会双倍赚钱, 阅读http://www.positioniseverything.net/explorer/doubled-margin.html 我们可以通过黑客代码来解决这个问题 ie6 _,即>
.class {_margin-left: 30px;}

.class {>margin-left: 30px;}
    

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...