请帮忙,我对编码比较陌生,想学习制作网站。我正在尝试插入一个菜单按钮,就像您从 SVG 看到的那个按钮一样,但不知道如何设置它的样式。这是我第一次使用 SVG。我关注了一个关于如何执行此操作的 youtube 视频,但仍然没有运气:( 提前感谢任何回复的人。
body {
background-color: #edf0f1;
}
header {
position: fixed;
top: 0;
left: 0;
height: 50px;
width: 100%;
background: -webkit-linear-gradient(top, rgba(252, 25, 29, 1) 1%, rgba(201, 0, 3, 1) 50%, rgba(132, 3, 12, 1) 100%);
border-bottom: solid 1.5px #000;
}
header h3 {
float: left;
font-size: 25px;
padding-left: 20px;
margin-top: 10.5px;
color: #fff;
}
header button {
position: fixed;
top: 10px;
left: 95%;
background: none;
border: none;
cursor: pointer;
}
header button svg .fill …Run Code Online (Sandbox Code Playgroud)