使用 CSS 建立帶邊框的按鈕組
您可以嘗試執行以下程式碼來使用邊框屬性建立帶邊框的按鈕組
示例
<!DOCTYPE html>
<html>
<head>
<style>
.btn {
color: black;
background-color: yellow;
width: 120px;
text-align: center;
font-size: 15px;
padding: 20px;
float: left;
border: 3px solid blue;
}
.mybtn {
background-color: orange;
}
</style>
</head>
<body>
<h2>Result</h2>
<p>Click below for result:</p>
<div class = "mybtn">
<button class = "btn">Result</button>
<button class = "btn">Result</button>
<button class = "btn">Result</button>
<button class = "btn">Result</button>
<button class = "btn">Result</button>
</div>
</body>
</html>
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP