For the last few days I have been designing a layout for my website based on some art I drew. The layout turned out great on Chrome and Firefox and then I checked IE and it looked horrible.
我知道,只有IE 7支持固定的职位,但它不为我工作......我尝试了十几部不同的法典,这些法典应让形象走向底层,而我所布设的层次却有多少,这并不奏效。
如你所见,我有两个问题。 我的全局布局被移走,我的主要旗帜形象并非处于底层。 我很想知道,有人是否能够研究这一法典,帮助我找到解决这一令人厌恶的错误的办法。 我希望我将这一权利张贴在前面。
<code>
<!-- language: lang-css -->
* { margin:0;}
body {
background-color:#2397b6;
background-image: url("mainbackgroundrepeat1");
background-repeat: repeat-x;
background-position:bottom;
background-attachment:fixed;
height:100%;
}
a:link { color:#2b8c56;}
a:visited {color:#2b8c56;}
a:hover {color:#f0faef;}
#banner_wrap{
width: 100%;
display: block;
position:fixed;
bottom:0;
margin-left:800px;
width:500px;
z-index:-1;
height: 353px;
}
#logo_wrap {
position:absolute;
width:600px;
margin-left:200px;
margin-top:2px;
}
#wrap {
position:absolute;
width: 580px;
min-height:100%;
height: auto;
margin: 180px 0 -353px 180px;
background-color:#b2d6df;
border: 10px solid #2b8c56;
text-align: left;
padding: 10px;
}
#footer {
font-size: .75em;
font-style: italic;
text-align: left;
}
/* START NAVIGATION */
#centeredmenu {
float:left;
width: 600px;
margin-left:180px;
margin-top:100px;
background:#b2d6df;
border: 10px solid #2b8c56;
overflow:hidden;
position:absolute;
}
#centeredmenu ul {
float:left;
list-style:none;
margin:0;
padding:0;
position:relative;
left:50%;
text-align:center;
}
#centeredmenu ul li {
display:block;
float:left;
list-style:none;
margin:0;
padding:0;
position:relative;
right:50%;
}
#centeredmenu ul li a {
display:block;
width: 77px;
padding:9px;
margin:0 12px 0 12px;
border-bottom: 4px solid #5bc668;
color:#000;
text-decoration:none;
font-variant:small-caps;
letter-spacing:2px;
font-weight:500;
line-height:.7em;
}
#centeredmenu ul li a:hover {
border-bottom:4px solid #f0faef;
color:#000000;
}
/* END NAVIGATION */
</code>