您的“特殊框”上的浮动过渡边框将元素向下推。我添加了“margin-top:-13px;”它看起来好多了。
/*----Special box----*/
header nav ul li.menu-item-444 a {
/*background: none repeat scroll 0 0 #34495e;
border-radius: 15px;*/
font-family: Orena, Sans-Serif;
font-size:25px;
float: left;
padding: 13px;
margin-top: -13px;
color:white;
/*transition: color 0.25s ease-in;*/
}
检查出来: http://jsfiddle.net/juhc4/
编辑:
这里有一个(稍微哈克),您就可以根据屏幕宽度移动您的标志:
设置标志,类大屏幕和类小屏幕之一:
一个DIV在ul
面前,因为你希望它浮高于一切,类smallscreen
:
<div id="menu-item-444" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-444 smallscreen">
<a href="index.html" title="Home">J<span class="mirror">J</span></a></div>
和你li
元素,类bigscreen
:
<li id="menu-item-444" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-444 bigscreen">
<a href="index.html" title="Home">J<span class="mirror">J</span></a></li>
接下来,我们建立@media
在CSS中查询,打开一个徽标,另一个取决于屏幕的宽度:
@media screen and (max-width: 720px){
.bigscreen {
display:none !important;
}
}
@media screen and (min-width: 721px){
.smallscreen {
display:none !important;
}
}
希望这有助于!
http://jsfiddle.net/ERJp5/1/
如果您使用twitter-bootstrap,这对您会不会更容易? – Geo