我有一个看起来像按钮的链接,它在 IE 和 FF 中看起来不错,但在 chrome 上却不行。
这是一个例子:http://www.problemio.com/problems/problem.php?problem_id=228
是页面中间的蓝绿色按钮,上面写着“关注问题”
我需要文本显示为白色,但出于某种原因它没有这样做。
这是CSS:
a:link.image_button
{
display: block;
background: #4E9CAF;
padding: 10px;
text-align: center;
border-radius: 5px;
color: white;
font-weight: bold;
text-decoration: none;
}
这是链接的 HTML:
<a class="image_button" id="follow_problem" rel="nofollow" href="#" style="display: none;" title="Update me via email whenever there are developments in this discussion.">Follow Problem</a>
最佳答案
我在 Chrome 15 上看起来不错。我建议您在您的操作系统上创建一个新的用户帐户并尝试全新安装 Chrome。也许您的某个插件正在干扰。
或者右键单击链接,检查元素,然后转到“计算样式”,查看它的颜色来自何处。
关于html - 链接的文本颜色未显示在 Chrome 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8359564/