我想将它们添加到同一行,以便头部看起来更加整洁,什么是正确的代码使用?
.header{
\t border-bottom:1px solid #eee;
\t padding:10px 0px;
\t width:100%;
\t text-align:left;
}
.header a{
\t color:#333;
\t text-decoration: none;
\t margin-left: 20px;
}
.phone {
\t text-align: right;
\t font-weight: bold;
\t padding-right: 20px;
\t align-content: right;
}
<div class="header">
<a href="/">Home</a>
<a href="products.html">Products</a>
<div class="phone"><a>Freephone: 0800 096 1617</a></div>
</div>