【发布时间】:2011-08-11 07:07:41
【问题描述】:
我有一个 href 链接作为 jquery 按钮
$("a.button, button, input:submit", "div").button();
<a href="/Home/Acton" class="button">Back</a>
<button name="submit" id="continue" value="continue">Continue</button>
结果我有:
所以问题是href 中的Back 文本不是白色的,为了解决这个问题,我添加了下面的样式。
/*jQuery buttons a href style fix*/
a.button:link {color: #fff !important;}
a.button:hover {color: #026890;}
我可以在 firebug 中看到该样式已应用但没有帮助,Back 文本仍然不是白色的。
问题是Back 悬停时看起来不错,但不悬停时文本应该是白色的,就像Continue 一样,但事实并非如此。
如何在 CSS 中解决这个问题?
【问题讨论】: