首页 > 其他 > 详细

搜索框样式

时间:2019-10-18 14:44:51      阅读:52      评论:0      收藏:0      [点我收藏+]
 技术分享图片
xml:
```
<!--头部搜索-->
<view class="search-area">
<!-- <view class="classify" style="height:100%">
<text bindtap="togglePtype" id="catselectbtn" style="height:36px"></text>
</view> -->
<view style="width:98%;margin:0 auto">
<view class="search-scanner">
<image src="../../images/scanner.png" bindtap="screenISBN"></image>
<input type="text" placeholder="请输入书名/ISBN号/作者/关键字" />
<icon type="search" size="18" color="#666666" />
</view>
</view>
 
</view>
<!--头部搜索结束-->
```
 
css:
```
/*search-area :start*/
.search-area {
height: 35px;
width: 100%;
padding: 2px 2px;
position: fixed;
top: 0px;
z-index: 99px;
background: #f4f4f4;
}
.classify {
width: 8%;
float: left;
}
.search-scanner {
padding: 12.5rpx 15rpx 12.5rpx 15rpx;
background: #fff;
margin: 0 auto;
border-radius: 5px;
height: 21px;
}
.search-scanner image {
width: 45rpx;
height: 45rpx;
display: inline-block;
float: left;
padding-right: 10rpx;
}
 
.search-scanner input {
width: 450rpx;
height: 20rpx;
line-height: 20rpx;
display: inline-block;
padding-left: 0rpx;
font-size: 25rpx;
}
 
.search-scanner icon {
display: inline-block;
float: right;
margin-right: 10rpx;
margin-top: 2px;
}
 
/*search-area :end*/
```

搜索框样式

原文:https://www.cnblogs.com/htybky/p/11697916.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!