머리글, 바닥 글 및 기사 태그가있는 간단한 페이지가 있습니다.HTML5 : 끈적한 바닥 글, 머리말 및 기사
- 헤더 는
- 을 완료 맨 스틱 : http://jsfiddle.net/6fmxv/
HTML :
<header> <div class="social"> <a class="facebook-logo" href="http://www.facebook.com/"> <div id="facebook"></div> </a> <a class="youtube-logo" href="http://www.youtube.com/"> <div id="youtube"></div> </a> <a class="twitter-logo" href="http://www.twitter.com/"> <div id="twitter"></div> </a> </div> </header> <article> <div>Question: Who are you?</div> </article> <footer> <div> <span></span> <div> </footer>
CSS :
html, body { height: 100%; margin: 0; } header { height: 24px; background-color: rgb(19, 147, 107); } header .social { padding-left: 19%; } header .social > a > div, footer > div > span { margin: 0 12px; float: left; height: 71px; width: 50px; background-image: url(sprites.png); } header .social > a > div#facebook { background-position: -116px -141px; } header .social > a > div#youtube { background-position: -62px -141px; } header .social > a > div#twitter { background-position: -9px -141px; } article { width: 300px; min-height: 100%; margin: 0 auto; } article > div { font-size: 3em; padding-bottom: 150px; } footer { background-color: black; height: 150px; position: relative; margin-top: -150px; /* negative value of footer height */ clear: both; } footer > div > span { background-position: 147px -138px; height: 133px; width: 138px; }
내가 유체 만들기 위해 노력하고,되도록 바닥 글 바닥 글 완료
- 브라우저 창의 크기를 조정하더라도 스크롤 막대가 없습니다. 하지 않음
- 페이지 중앙에 기사 (한 줄). 는 중간에있는 텍스트를 확인하고이 시나리오에서 (수직 스크롤 바없이) 페이지 유체를 만드는 방법,
제안하십시오을 완료하지 않습니다.