/app.wxss/
/*
整个小程序的公共样式表
可以在页面组件的class属性上直接使用app.wxss中声明的样式规则
*/
/* 容器部分 */
page {
background-color: rgb(240, 240, 240);
height: 100%;
font-size: 32rpx;
font-family: "Hiragino Sans GB", "Helvetica Neue", Helvetica, "Microsoft Yahei", heiti, Arial, sans-serif;
}
/*搜索部分*/
.container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
min-height: 100%;
overflow-x: hidden;
}
.search-box {
-webkit-display: flex;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
box-sizing: border-box;
background-color: rgba(8, 8, 8, .84);
padding: 0 56rpx;
position: relative;
}
.bg-image {
position: absolute;
z-index: -1;
left: 0;
top: 0;
bottom: 0;
right: 0;
}
.search-input {
background-color: #fff;
padding-left: 12px;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
border-top-left-radius: 200rpx;
border-bottom-left-radius: 200rpx;
height: 65.182rpx;
max-width: 577.294rpx;
}
.search-btn {
background-color: #fff;
-webkit-display: flex;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding-right: 20rpx;
border-top-right-radius: 200rpx;
border-bottom-right-radius: 200rpx;
}
.placeholder-style {
font-size: 26rpx;
color: #ABACB0;
}
.clearfix:after {
display: table;
clear: both;
content: '';
}
.pull-left {
float: left;
}
.pull-right {
float: right;
}
/* 小程序中也存在web端一样的问题*/
image {
vertical-align: middle;
}