请参见我的网址[移走]。
我的脚步按预期在观察港尾展出。
如果对屏幕进行垂直调整,则脚步将重叠。
How can this be avoided?
请参见我的网址[移走]。
我的脚步按预期在观察港尾展出。
如果对屏幕进行垂直调整,则脚步将重叠。
How can this be avoided?
* {
margin: 0;
}
html, body {
height: 100%;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -142px; /* the bottom margin is the negative value of the footer s height */
}
.footer, .push {
height: 142px; /* .push must be the same height as .footer */
}
/*
Sticky Footer by Ryan Fait
http://ryanfait.com/
*/
<><>Edit>:
你在包皮上的负面价值与脚.的高度不相称。 这很可能是你的问题的一部分。
#wrapper {
min-height: 100%;
min-width: 450px;
height: auto !important;
height: 100%;
/* your old code: margin: 0 auto -4em;*/
margin: 0 auto -83px;
}
footer {
background: url( images/foot_bg.jpg ) center no-repeat,
url( images/foot_liq_bg.jpg ) repeat;
position:absolute;
bottom:0;
width:100%;
height:83px;
min-width: 450px;
}
<><>Edit>:
你的身高在html和身体上不会达到100%。 因此,遗体只能被定为其母体(html)的100%,而该母体的浏览量不是100%。 你们必须把html的高度定在100%之内,而且还要工作。
Don t worry, Sean. 你不要忘记工作。
您需要修改<条码> pa-底条码>至<条码> mar-底条码>,并在<条码>上绝对定位。 此外,还必须增加推动力,使这一 stick脚步得以工作。
这一jsFiddle应当帮助我:。 http://jsfiddle.net/4vunq/。
传真:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Vault-X</title>
<!--JS enabling IE <=8 to recognise HTML5 elements-->
<script type="text/javascript">
document.createElement ( header )
document.createElement ( footer )
</script>
<script type="text/javascript" src="javascript.js"></script>
<link href="style_01.css" title="one" rel="stylesheet" type="text/css">
</head>
<body>
<div id="switchoff">
<div id="wrapper">
<header></header>
<div id="switch">
<a href="#" onClick="lightSwitch();">
<img src="http://www.vault-x.com/images/switch.jpg">
</a>
</div>
<div id="content"><p class="switch">Hello World</p></div>
<div class= push ></div>
</div>
<footer></footer>
</div>
</body>
</html>
Relevant CSS:
* {
margin: 0;
}
html, body {
height: 100%;
}
footer, .push {
height: 83px; /* .push must be the same height as "footer" */
}
这里,你有<条码> pa-底条码>,而不是<条码>。
body {
background:url( http://www.vault-x.com/images/body_bg.jpg ) repeat-x;
background-color: #000;
margin-bottom:83px;
}
下限也非常重要:
#wrapper {
min-height: 100%;
min-width: 450px;
height: auto !important;
height: 100%;
margin: 0 auto -83px; /* bottom margin is negative value of footer s height */
}
以及你的脚本:
footer {
background: url( http://www.vault-x.com/images/foot_bg.jpg ) center no-repeat,
url( http://www.vault-x.com/images/foot_liq_bg.jpg ) repeat;;
width:100%;
height:83px;
min-width: 450px;
}
这只应当做到。 尼斯光点;和好uck!
我补充说清楚:两者都解决了我的问题。
#footer {
position:relative;
width:100%;
height: 200px;
background-color:#7B7168;
margin-top: -200px;
padding-bottom:50px;
clear:both;
}
I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....
I have a div <div id="masterdiv"> which has several child <div>s. Example: <div id="masterdiv"> <div id="childdiv1" /> <div id="childdiv2" /> <div id="...
I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...
<form><input type="file" name="first" onchange="jsFunction(2);"> <input type="file" name="second" onchange="jsFunction(3);"</form> Possible to pass just numbers to the js ...
So I ve got a menu with a hover/selected state and it loads fine in IE6/IE7. However when I scroll down the page and put the element outside of the viewport and then back in I get a broken image! I ...
I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...
Is it possible to reload a form after file-input change? I have a form where the user can chose an image for upload. I also have a php script which displays that image resized. I only wonder if it ...
I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!