<!DOCTYPE html>
|
<html lang="en">
|
<head>
|
<meta charset="UTF-8">
|
<title>Title</title>
|
<meta name="renderer" content="webkit">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
<link rel="stylesheet" type="text/css" href="../static/css/normalize.css">
|
<link rel="stylesheet" type="text/css" href="../static/css/common.css">
|
<style>
|
html {
|
height: 100%;
|
}
|
body {
|
height: 100%;
|
/*background-color: #007DDB;*/
|
}
|
#container {
|
position: relative;
|
}
|
#box {
|
position: absolute;
|
top: 15px;
|
left: 30px;
|
}
|
|
/* 按钮组 */
|
.group .item {
|
float: left;
|
border-top: 2px solid #333;
|
border-bottom: 2px solid #333;
|
border-left: 1px solid #333;
|
border-right: 1px solid #333;
|
}
|
.group .item:first-child {
|
border-left: 2px solid #333;
|
}
|
.group .item:last-child {
|
border-right: 2px solid #333;
|
}
|
button.item {
|
padding: 1px 1px 1px 1px;
|
width: 22px;
|
height: 22px;
|
outline: none;
|
cursor: pointer;
|
color: #333;
|
background-color: transparent;
|
transition: 0.4s;
|
}
|
button.item:hover {
|
background-color: #333;
|
color: #fff;
|
}
|
|
</style>
|
</head>
|
<body>
|
<div id="container">
|
<div id="box">
|
<div class="group">
|
<button class="item">1</button>
|
<button class="item">24</button>
|
<button class="item">25</button>
|
<button class="item">26</button>
|
<button class="item">27</button>
|
<button class="item">28</button>
|
</div>
|
</div>
|
</div>
|
</body>
|
</html>
|