a:hover样式添加cufon后不影响
在 HTML 中添加 cufon 之前,我有以下代码,该代码可以完美运行:
<div id="pageNumbers" class="fl">
<ul>
<li id="selected"><a href="">1</a></li>
<li><a href="">2</a></li>
<li><a href="">3</a></li>
<li><a href="">4</a></li>
<li><a href="">5</a></li>
</ul>
</div> <!-- end pageNumbers -->
#pageNumbers a:hover
{
color:#FFF;
height:26px;
width:27px;
padding: 5px 12px 5px 11px;
}
但是在 HTML 中添加 cufon 后,它不起作用。问题是我怎样才能让cufon理解并应用我的风格?
提前致谢!
I have the following code that worked perfectly before adding cufon in the HTML:
<div id="pageNumbers" class="fl">
<ul>
<li id="selected"><a href="">1</a></li>
<li><a href="">2</a></li>
<li><a href="">3</a></li>
<li><a href="">4</a></li>
<li><a href="">5</a></li>
</ul>
</div> <!-- end pageNumbers -->
#pageNumbers a:hover
{
color:#FFF;
height:26px;
width:27px;
padding: 5px 12px 5px 11px;
}
But after adding cufon in the in the HTML it doesn't work. The question is how can I make cufon understand and apply my style?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 Cufon API,
hover
默认关闭以提高性能。因此,您需要为任何需要在悬停时以不同方式绘制的元素打开悬停。这可以使用以下代码来完成:
According to the Cufon API,
hover
is turned off by default to improve performance. So you need to turnhover
on for any elements that need to be drawn differently on hover.This can be done using the following code: