【发布时间】:2022-02-13 04:42:57
【问题描述】:
如何在不改变样式的情况下让我的按钮链接到下一页?
这是 HTML:
<div class="image-round-fit">
<img src="images/pic.jpg" alt="photo" width="300px" height="300px" />
<span class="caption">Hello World</span></br>
<a href="#" class="btn btn-info role=button">Click Next</a>
</div>
这里是 CSS
.btn {
background-color: DodgerBlue;
border: none;
color: white;
margin: 50px;
padding: 12px 30px;
cursor: pointer;
font-size: 20px;
display: flex;
align-items: center;
justify-content: center;
}
.btn:悬停{
background-color: rgb(255,94,0);
}
【问题讨论】: