我有粘在底部(它停留在同頁長和短的網頁底部的。)下面頁腳是它如何用另一個元素覆蓋粘性頁腳?
.footer{
position: absolute;
bottom: 0;
width: 100%;
height: 100px;
background-color: white;
}
我想創建一個「揭露」或幕布效果的CSS類似於這個網站上的內容... dartlang.org。 (顯然滾動到底部)。我試圖用固定頁腳來做這件事,但我似乎無法讓它工作。
我使用的是軌道和渲染與此代碼頁腳在我application.html.erb文件
<%= render 'shared/footer' unless @disable_footer %>
出於某種原因jQuery的顯示頁腳不希望任何與此設置工作
編輯: 這裏是我的頁腳的代碼...它的馬虎,對不起。
<footer class="footer" id="#myfooter">
<body>
<div style="background-color: white;">
<hr style="width: 100%;">
<div class="container">
<div class="row">
<div class="container-fluid">
<div class="col-md-6">
<h4>Consulting and Development</h4>
<ul style="font-weight: bold;">
<li><%= link_to "Training and Coaching", training_coaching_path%></li>
<li> <%= link_to "Business Development", business_development_path%></li>
<li> <%= link_to "Automotive Consulting", automotive_consulting_path%></li>
<li> <%= link_to "Environmental Consulting", environmental_safety_path%></li>
</ul>
</div>
<div class="col-md-6">
<h4>Quality Product Assurance</h4>
<ul style="font-weight: bold;">
<li><%= link_to "Product Inspection and Quality Resolution", containment_and_quality_path%></li>
<li><%= link_to "Auditing", auditing_path%></li>
</ul>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-4">
<h4 style="text-decoration: underline;">Corporate Office Location:</h4>
<p>1</p>
<p></p>
</div>
<div class="col-md-4">
<h4 style="text-decoration: underline;">Mailing Address:</h4>
<p></p>
<p></p>
</div>
<div class="col-md-4" style="text-align: center">
<p>
<a href="mailto:hr"><i class="fa fa-envelope-o fa-2x" aria-hidden="false"></i></a>
<a href="https://www.linkedin.com/company/"><i class="fa fa-linkedin fa-2x" aria-hidden="false"></i></a>
<a href="https://www.facebook.com/"><i class="fa fa-facebook-square fa-2x" aria-hidden="false"></i></a>
</p>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p class="text-muted" style="text-align: center;"> - Copyright 2016 - All Rights Reserved</p>
<p class="text-muted" style="text-align: center;"> Homepage background image was <a href="http://www.freepik.com/free-vector/gear-icons-collection_792514.htm">Designed by Freepik</a></p>
</div>
</div>
</div>
</div>
</body>
</footer>
啊,謝謝。我錯過了主要內容的保證金 – ncrouch25
很高興工作,歡呼。 – Ricky