【发布时间】:2022-12-19 18:30:04
【问题描述】:
我正在创建一个链接到 Youtube 的按钮,但按钮内的文本不响应 css 代码
我试过这个html代码:
<button class = "button"><a href = https://www.youtube.com>This is a button to youtube</a></button>
这个CSS:
.button {
width:100px;
height:100px;
border-radius:12px;
font-family: arial;
color: black;
font-size:15px;
text-decoration: none;
background-color:red;
border-left: solid transparent;
border-right: solid transparent;
border-top: solid transparent;
border-bottom: solid transparent;
position:relative;
top:10px;
}
【问题讨论】: