CSS border 属性示例
html公开前 25 行,完整代码需登录
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS border-style 属性示例</title>
<style>
.border-box {
width: 200px;
height: 100px;
margin: 15px;
padding: 15px;
display: inline-block;
vertical-align: top;
background-color: #fff;
text-align: center;
line-height: 70px;
}
/* 基础边框样式 */
.solid {
border-style: solid;
border-width: 3px;
border-color: #333;
}