我有一个页面在http://www.problemio.com/problems/problem.php, 和你看到在右下角我有一个青色图像。这真的是一个链接,并在该链接我似乎无法让文字颜色显示为白色。看起来像一个图像按钮的链接不听色彩:在css中的指令
这里是我的CSS:
.button
{
display: block;
background: #4E9CAF;
padding: 10px;
text-align: center;
border-radius: 5px;
color: white;
text-color: white;
font-weight: bold;
text-decoration: none;
}
a:button.visited
{
display: block;
background: #4E9CAF;
padding: 10px;
text-align: center;
border-radius: 5px;
color: white;
text-color: white;
font-weight: bold;
text-decoration: none;
}
,这里是我怎么能有HTML链接:
<a class="button" id="follow_problem" href="#" title="...">Follow Problem</a>
任何想法什么错误,为什么链接的颜色不白色?
呵呵,这个'更优先:按钮。 visited“应该是'a:visited.button'而不是?那就是:一个锚:“visited”和“.button”。 – ANeves