答案 0 :(得分:0)
尝试使用css来实现按钮样式:
HTML:
<span class="p-btn">+</span>
CSS:
span.p-btn {
border: solid 1px;
height: 36px;
width: 36px;
border-radius: 100%;
float: left;
line-height: 35px;
text-align: center;
font-size: 23px;
cursor: pointer;
}
跨度(按钮)后,您可以添加文字。
答案 1 :(得分:0)
.my.btn:focus,
.my.btn:hover,
.my.btn{
background:none;
border:none;
box-shadow:none;
color:gray;
padding: 0px;
}
.myInput{
border: none;
border-bottom: 1px solid #808080;
}
.myInput:focus{
border: none; outline:none;
border-bottom: 1px solid #808080;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<div>
<button class="my btn glyphicon glyphicon-plus-sign"></button>
<input type="text" class="myInput">
</div>