Programmers are very dependent, you know!
Recently in doing HTML5 page development, mainly to do intelligent terminal equipment development. For pages with less content, the leader proposes to position the header and footer at the top and bottom of the page. In fact, there is no point in this requirement. But for the novice, it is really difficult, it is not easy, today I will learn the content together to share!
There are three ways to place headers and footers:
Inline-Default. The header and footer are in line with the page content.
Fixed-pages and footers will remain at the top and bottom of the page.
Fullscreen-similar to fixed; pages and footers stay at the top and bottom of the page
Use the Data-position property to locate the header and footer:
Look at the code:
<! DOCTYPE html>OK, we're on:
Click to download the material: http://download.csdn.net/download/xmt1139057136/7422831
If you still do not understand, please add QQ Group:135430763Learn together!