小编Luu*_*uuk的帖子

CSS列表项宽度/高度不起作用

我试图制作导航内联列表.你可以在这里找到它:http: //www.luukratief-design.nl/dump/parallax/para.html

由于某种原因,它不显示LI的宽度和高度.这是片段.这有什么问题?

.navcontainer-top li {
    font-family: "Verdana", sans-serif;
    margin: 0;
    padding: 0;
    font-size: 1em;
    text-align: center;
    display: inline;
    list-style-type: none;<br>
    width: 117px;
    height: 26px;
}


.navcontainer-top li a {
    background: url("../images/nav-button.png") no-repeat;
    color: #FFFFFF;
    text-decoration: none;
    width: 117px;
    height: 26px;
    margin-left: 2px;
    margin-right: 2px;
}
.navcontainer-top li a:hover {
    background: url("../images/nav-button-hover.png") no-repeat;
    color: #dedede;
}
Run Code Online (Sandbox Code Playgroud)

css

36
推荐指数
2
解决办法
11万
查看次数

在CSS中居中一个div

我正在尝试将newsslider(在div底部容器中)放在此页面上:

http://www.luukratief-design.nl/dump/parallax/index.html

我已经有了 text-align: center;

它仍然无效.

有什么建议?

html css center

28
推荐指数
3
解决办法
2万
查看次数

标签 统计

css ×2

center ×1

html ×1