【发布时间】:2016-07-26 18:02:37
【问题描述】:
这是我的简单代码:
<ul>
<li>
Example1
</li>
<li>
Example12
</li>
<li>
Example13
</li>
</ul>
用这个css:
ul
{
text-align: center;
margin: 0;
padding: 3vh;
position: fixed;
bottom: 0;
width: 100%;
background-color: #333;
overflow: hidden;
list-style-type: none;
}
li
{
display: inline;
}
而"Example1" 并不完全位于页面中心。
这就是现在的样子(black 行表示页面中心,将"Home" 替换为"Example1"):
我怎样才能让它看起来像这样(black line mean center of page):
【问题讨论】:
-
请正确提出您的问题。