내 Rails 앱에서 Twitter Bootstrap
을 사용하고 있습니다. 내 바닥 글은 너비가 충분히 필요한 가로 모드가있는 화면에 제대로 표시됩니다. 여기
가 보이는 방법입니다 내 안드로이드 갤럭시 노트의 브라우저에
트위터 부트 스트랩이있는 반응 형 CSS
을하지만, 그것은 깨진 나타납니다. 브라우저를 가로 모드로 사용하면 바닥 글이 올바르게 나타나지만 세로 모드에서는 끊어집니다.
<div id="footer">
<div class="container">
<p class="muted credit" style="text-align: center" >
© 2013 <a href="http://www.example.com">WebsiteName.com</a> All Rights Reserved. |
<a href="" title="Privacy Policy">Privacy Policy</a> |
<%= link_to 'Terms of Service', terms_of_service_path %>
</p>
</div>
</div>
Example - sticky-footer에서 위의 차용에 대한 CSS :
html,
body {
height: 100%;
/* The html and body elements cannot have any padding or margin. */
}
/* Wrapper for page content to push down footer */
#wrap {
min-height: 100%;
height: auto !important;
height: 100%;
width: 100%;
/* Negative indent footer by it's height */
margin: 0 auto -60px;
position: fixed;
left:0;
top:0;
}
/* Set the fixed height of the footer here */
#push,
#footer {
height: 60px;
}
#footer {
background-color: #f5f5f5;
}
/* Lastly, apply responsive CSS fixes as necessary */
@media (max-width: 767px) {
#footer {
margin-left: -20px;
margin-right: -20px;
padding-left: 20px;
padding-right: 20px;
}
}
.container .credit {
margin: 20px 0;
}
내가 모르는 이유는 렌더링하지 않습니다 여기에
내 코드입니다 : 것 같습니다 그것 올바르게. 저는 Responsive CSS에 익숙하지 않고 배우고 있습니다. 나에게 무엇이 잘못되었는지 알려주세요.
JSFiddle please? –
바닥 글이 메모의 사용 가능한 공간에 맞지 않는 것 같습니다. 그렇다면 작은 공간에 어떻게 반응합니까? – KatieK
@KatieK : 개인 정보 취급 방침 및 서비스 약관을 다른 행의 저작권 아래에 표시하고 싶습니다. –