【发布时间】:2013-09-03 15:09:38
【问题描述】:
我在将自定义链接样式放入我下载的 jQuery Mobile CSS 文件时遇到问题。
这是我使用的两种代码的示例:
.body A:link {color: #5f8bff; text-decoration: none}
.body A:visited {color: #5f8bff; text-decoration: none}
.body A:active {color: #5f8bff; text-decoration: none}
.body A:hover {color: #5f8bff ; text-decoration: underline; color: #ffffff;}
.body2 A:link {color: #e1d34b; text-decoration: none}
.body2 A:visited {color: #e1d34b; text-decoration: none}
.body2 A:active {color: #e1d34b; text-decoration: underline}
.body2 A:hover {color: #5f8bff; text-decoration: underline; color: #ffffff;}
此代码在放入 <span class="body"> 和 <span class="body2"> 时没有响应。
示例网址在这里:www.camavision.com/wp/jquery
有什么建议吗?我正在尝试创建三种不同类型的链接样式来覆盖当前的 CSS。
【问题讨论】:
标签: jquery css jquery-mobile hyperlink