<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.c{
float:left;
border:1px solid slategray;
height:30px;
/*width:100px;*/
top:15px;
text-align:center;
color:red;
}
</style>
</head>
<body>
<div class="c" style="width:121px;">
<div class="c" style="width:31px;">
<label>-</label>
</div>
<div class="c" style="width:53px";>
<input type="text" style="width:50px;border:0;">
</div>
<div class="c" style="width:31px;">
<label>+</label>
</div>
</div>
</body>
</html>
转载于:https://www.cnblogs.com/xiesongyou/p/7825326.html