当使用多个列表和悬停状态时,“父”Cufon样式将替换该子项。在以下示例中,当您悬停第二级链接时,它将被替换为不同的权重。Cufon嵌套悬停问题
有没有我可以设置的选项,以便嵌套样式保持不变或这是Cufon中的错误/限制吗?
<ul>
<li><a href="#">Top Level</a></li>
<li><a href="#">Top Level</a></li>
<li><a href="#">Top Level</a><ul>
<li><a href="#">Second Level</a></li>
<li><a href="#">Second Level</a></li>
<li><a href="#">Second Level</a></li>
</ul>
<li><a href="#">Top Level</a></li>
<li><a href="#">Top Level</a></li>
</ul>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://github.com/sorccu/cufon/raw/master/js/cufon.js"></script>
<script type="text/javascript" src="http://github.com/sorccu/cufon/raw/master/fonts/Vegur.font.js"></script>
<script type="text/javascript">
Cufon.replace('ul li a',{hover: true, fontWeight: 200});
Cufon.replace('ul li ul a',{hover: true, fontWeight: 700});
</script>
谢谢亲切!你的选择逻辑fu很强。 至于悬停问题,我只是添加了样本的fontweight选项,因为我找不到两个不同的字体来指向cufon。 – Tom 2009-12-01 13:12:56