小编Fra*_*985的帖子

我无法用<li>删除保证金

你知道为什么我不能从我的<li>元素中删除边距吗?浏览器总是为我的列表添加特定的边距,即使我将代码写入特定的边距.这是CSS和HTML代码:

#NavLeftList {
    height: 57 % ;
    width: 15 % ;
    position: absolute;
    top: 23 % ;
    border-style: none;
    background: url(images / heaven.jpg);
    margin: 0px
}

#NavLeftList ul {
    margin-left: 11 % ;
}

#NavLeftList ul li {
    text-align: center;
    width: 170px;
    list-style-type: none;
    text-decoration: none;
    margin: 10px 0px 0px 0px;
    padding: 1px;
}

#NavLeftList li a {
    height: 35px;
    padding: 10px 0px 0px 0px;
    text-decoration: none;
    color: #fff;
    background: url(images / tabright.gif);
    display: block
}

#NavLeftList li …
Run Code Online (Sandbox Code Playgroud)

html css margin html-lists

4
推荐指数
1
解决办法
7579
查看次数

标签 统计

css ×1

html ×1

html-lists ×1

margin ×1