Learn how to create pill buttons with CSS.
<button class="button">Pill Button</button>
Add rounded corners to a button with the border-radius
property:
.button {
background-color: #ddd;
border: none;
color: black;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
margin: 4px 2px;
cursor: pointer;
border-radius: 16px;
}
Try it Yourself »
Go to our CSS Buttons Tutorial to learn more about how to style buttons.
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!