我正在开发一个Web项目的标题部分,我想链接停留在它的顶部。为什么我的链接在彼此之上?
这里的HTML:
<div id="header_section">
<a class="toplink" href="#">Contact</a>
<a class="toplink" href="#">Register</a>
<a class="toplink" href="#">Staff Login</a>
<a class="toplink" href="#">Home</a>
<h1 class="welsh"> SAMPLE </h1>
<h1> SAMPLE </h1>
</div>
而CSS:
a.toplink
{
font-family: ‘Arial Narrow’, sans-serif;
font-size: 12px;
font-weight: bold;
position: fixed;
top: 0px;
right: 10px;
margin-right: 100px;
padding: 6px;
width: 100px;
text-align: center;
color: black;
background-color: #f3f3f3;
}
这感动,我想他们的联系,但他们都堆积在每个顶部时,我想显示他们彼此相邻。显示的唯一链接是“家”,其余的在下面。有任何想法吗?
将您的代码添加到jsfiddle.net –
是的。你能给我们一个jsfiddle.net现场演示吗? –
你究竟需要.......... –