我有一个像这样工作的按钮类:
<p class="button"><a href="#">Rejoindre</a></p>
CSS是:
p.button
{
background-color: #e74c3c;
line-height: 30px;
width: 200px;
text-align: center;
}
.button a
{
font-family: Montserrat, sans-serif;
color: white;
font-size: 0.9em;
text-transform: uppercase;
}
.button a:hover
{
text-decoration: none;
}
如何使整个按钮(由段落标记表示)成为链接而不仅仅是文本?