搜索框
用法
Class类 |
描述 |
.baie-search |
父元素,创建容器。 |
.baie-search__input |
子元素,输入框。 |
.baie-search__icon |
子元素,图标。 |
示例

HTML
<div class="baie-search">
<span class="baie-search__icon"></span>
<input type="text" name="phone" placeholder="请输入经销商手机号" class="baie-search__input">
</div>
CSS
.baie-search {
position: relative;
max-width: 100%;
}
.baie-search__input {
width: 100%;
padding: .28rem .72rem .28rem .24rem;
border: 1px solid #e5e5e5;
border-radius: .10rem;
background: #fff;
color: #161616;
font-size: .30rem;
line-height: .42rem;
-webkit-transition: all .2s linear;
transition: all .2s linear;
box-sizing: border-box;
outline: 0;
box-shadow: 0 .04rem .06rem rgba(0, 0, 0, 0.075) inset ;
vertical-align: middle;
}
.baie-search__input:focus {
border-color: #d5d5d5;
background: #f5f5f5;
}
.baie-search__icon {
font-family: FontAwesome;
font-weight: 400;
line-height: .40rem;
display: inline-block;
position: absolute;
top: 50%;
right:0;
width: .68rem;
margin-top: -.20rem;
font-size: .44rem;
color: #d1d1d1;
text-align: center;
cursor: pointer;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.baie-search__icon:after {
content: "";
display: block;
width: .40rem;
height: .40rem;
background: url(../images/icon_search_agent.png) no-repeat;
background-size: .40rem;
}