1
<body>
<div id = "wrapper">
<div id = "video">
</div>
</div>
<div id = "footer">
<div id = "footercontent">
</div>
</div>
</body>
*
{
margin: 0px;
padding: 0px;
}
.selfclear:after
{
content: ".";
float: left;
display: block;
height: 0;
clear: both;
visibility: hidden;
}
html, body
{
height: 100%;
}
#wrapper
{
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -343px; /* the bottom margin is the negative value of the footer's height */
width: 100%;
background: url("images/landing_page_bg.png");
}
#video
{
width: 940px;
height: 530px;
background: black;
margin-left: auto;
margin-right: auto;
margin-top: 100px;
}
#footer
{
height: 343px; /* .push must be the same height as .footer */
background: url("images/Landing_page_Footer.png")no-repeat;
background-size: 100%;
background-color: black;
width: 100%;
}
#footercontent
{
height: 100%;
width: 1920px;
margin-left: auto;
margin-right: auto;
}
您需要重新格式化CSS在你的問題。目前只有一部分格式正確。 – Dan