我试图让我的页脚响应如此阅读和使用一些例子后,我做了一个,但它不是我想要的。如何保持页脚元素对齐?
我想连续显示Data protection disclaimer contact
,而不是一个上行显示。
.table {
position: relative;
right: 0;
bottom: 0;
left: 0;
height: 50px;
line-height: 50px;
clear: both;
color: white;
background-color: black;
font-size: 14px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
z-index: 10;
display:table;
width:100%;
}
.table > div {
display:table-cell;
width:33%;
}
.table > .cell150 {
width:33%;
}
.cell150:before {
content:'';
display:inline-block;
width:33%;
}
.a{
background-color: blue;
}
.b{
background-color: yellow;
}
.c{
background-color: pink;
}
<div class="table">
<div class="cell150 a">
V 1.1
</div>
<div class="cell150 b">
Hi StackOverflow
</div>
<div class="cell150 c">
<div class="col-xs-4 col-sm-8 col-md-4">
<a href="/data_protection.pdf" class="footer-item hidden-xs" target="_blank">Data protection</a><a href="/disclaimer.pdf" class="footer-item hidden-xs" target="_blank">Disclaimer</a><a class="footer-item">Contact</a>
</div>
</div>
</div>
好了,所以在这里我不知道为什么它显示我想......但在我的情况是这样的:
你们是否有一个想法如何解决这个问题?
但是当我尝试移动视图我看不到'disclaimer'和'数据protection'应该把他们一个一个上攻或者我不知道你明白我的意思? – Jerome
@Jerome如果是这样,那么你必须删除'hidden-xs'类 – Sankar
它是正确的!谢谢 – Jerome