我学会div+css没几天,做了个模板,都挺顺利的,自我感觉挺良好的,可就是导航条出了问题.
我现在导航条的css代码如下:
/* navigation */
.navigation {
background: #D9E1E5 url(ipati/nav.gif);
border: 1px solid #DFEEF7;
border-color: #DFEEF7 #CFDEE7;
height: 41px;
}
.navigation a {
background: #D9E1E5 url(ipati/nav.gif);
border-right: 1px solid #AFBEC7;
color: #456;
display: block;
float: left;
font: bold 1.1em sans-serif;
line-height: 41px;
padding: 0 20px;
text-decoration: none;
}
.navigation a:hover {background-position: left bottom; color: #234;}
页面导航的代码如下:
<div class="navigation">
<#CACHE_INCLUDE_NAVBAR#>
</div>
但是ZBLOG默认的连接方式是<li><a herf=""></a></li>的.但是如果这样的话我的导航就出现错位
所以说我不得不在后台把导航条都改成<a herf=""></a>才能正常显示.可是如果这样那大家以后用这个模板也不方便了啊
大家帮帮忙改进下我这代码,让它能正常发布共享啊
