我的頁面底部有一個頁腳。它具有以下HTML和CSS:如何只在手機上放大頁腳?
<style>
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
#footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 60px;
background-color: #e7e7e7;
}
</style>
<div id="footer">
<div class="container col-md-3 text-center">
<p class="text-muted">© 2015, LuMa</p>
</div>
<div class="container col-md-6"></div>
<div class="container col-md-3 text-center">
<p><a href="/terms">Terms</a> & <a href="/privacy">Privacy</a></p>
</div>
</div>
這看起來桌面上的好:
但在移動設備上有一個換行符:
這沒關係,但我怎麼能在移動設備上放大我的頁腳?我對CSS不太熟悉,但是我聽說有一種方法可以在不同大小的設備上應用不同的樣式。有人得到了我的提示嗎?
正是我在找的東西:) – LuMa 2015-04-02 10:16:15