代码:
<style>
.RoundButton
{
text-align: center;
text-decoration: none;
font-size: 34px;
width: 70px;
height: 40px;
background-color: #ffffff;
border-radius: 15px;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border: 5px solid #000000;
padding: 5px;
}
.RoundButton:link {color: #000000;}
.RoundButton:visited {color: #000000;}
.RoundButton:hover {color: #000000;border: 5px solid #ff0000;}
.RoundButton:active {color: #000000; border: 5px solid #0000ff;}
</style>
然后我有一些HTML:
<center><a href="https://www.google.com" target="blank"><div class="RoundButton">Hi</div></a></center>
当我查看它时,它显示默认链接颜色,但圆形按钮更改颜色有效。我查看了 W3Schools,他们的示例看起来像我的,但有效。帮助?