Wie man erstellt: Kugelkappenknopf
Lernen Sie, wie man mit CSS Kugelkappenknöpfe erstellt.
Wie man einen Kugelkappenknopf erstellt
Schritt 1 - HTML hinzufügen:
<button class="button">Pill Button</button>
Schritt 2 - CSS hinzufügen:
Verwenden Sie das Attribut border-radius, um Kantenrunden für die Schaltfläche hinzuzufügen:
.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; Kantenradius: 16 px; {}
相关页面
教程:CSS 按钮