我已經爲側面菜單寫了一些CSS3代碼,但我需要進一步向下移動菜單(因爲它到了高點)。爲了移動菜單,我需要更改哪部分css3?我CCS3code低於或者你可以在http://codepen.io/aaron_1986/pen/wMYoYKCSS3側面菜單,移動屏幕?
#navigationMenu li{
list-style:none;
height:39px;
padding:2px;
width:40px;
}
#navigationMenu span {
width:0;
left:38px;
padding:0;
position:absolute;
overflow:hidden;
font-family:'Myriad Pro',Arial, Helvetica, sans-serif;
font-size:18px;
font-weight:bold;
letter-spacing:0.6px;
white-space:nowrap;
line-height:39px;
/* CSS3 Transition: */
-webkit-transition: 0.25s;
/* Future proofing (these do not work yet): */
-moz-transition: 0.25s;
transition: 0.25s;
}
#navigationMenu a{
/* The background sprite: */
background: url('http://res.cloudinary.com/dejafqqbm/image/upload /v1454847965/navigation_kxrtcc.jpg') no-repeat;
height:39px;
width:38px;
display:block;
position:relative;
}
#navigationMenu a:hover span{ width:auto; padding:0 20px;overflow:visible; }
#navigationMenu a:hover{
text-decoration:none;
-moz-box-shadow:0 0 5px #fff;
-webkit-box-shadow:0 0 5px #fff;
box-shadow:0 0 5px #fff;
}
#navigationMenu .home { background-position:0 0;}
#navigationMenu .home:hover { background-position:0 -39px;}
#navigationMenu .home span{
background-color:#7da315;
color:#3d4f0c;
text-shadow:1px 1px 0 #99bf31;
}
#navigationMenu .images { background-position:-38px 0;}
#navigationMenu .images:hover { background-position:-38px -39px;}
#navigationMenu .images span{
background-color:#1e8bb4;
color:#223a44;
text-shadow:1px 1px 0 #44a8d0;
}
#navigationMenu .Links { background-position:-76px 0;}
#navigationMenu .Links:hover { background-position:-76px -39px;}
#navigationMenu .Links span{
background-color:#c86c1f;
color:#5a3517;
text-shadow:1px 1px 0 #d28344;
}
#navigationMenu .ContactUs { background-position:-114px 0;}
#navigationMenu .ContactUs:hover{ background-position:-114px -39px;}
#navigationMenu .ContactUs span{
background-color:#d0a525;
color:#604e18;
text-shadow:1px 1px 0 #d8b54b;
}
#navigationMenu .hhh { background-position:-38px 0;}
#navigationMenu .hhh:hover { background-position:-38px -39px;}
#navigationMenu .hhh span{
background-color:#af1e83;
color:#460f35;
text-shadow:1px 1px 0 #d244a6;
}
#navigationMenu .ggg { background-position:-76px 0;}
#navigationMenu .ggg:hover { background-position:-76px -39px;}
#navigationMenu .ggg span{
background-color:#ffb1b1;
color:#5a3517;
text-shadow:1px 1px 0 #d28344;
}
#navigationMenu .zzz { background-position:-114px 0;}
#navigationMenu .zzz:hover{ background-position:-114px -39px;}
#navigationMenu .zzz span{
background-color:#d9d1ff;
color:#604e18;
text-shadow:1px 1px 0 #d8b54b;
}
您的保證金頂部是'#'navigationMenu'的margin-top:16.50%;'它告訴它應該是'16.50%'的父母身高。你可以調整它到你想要的輸出。 – DebRaj