page{ min-height: 100%; background-color: #f4f4f4; } .container{ min-height: 100%; background-color: #f4f4f4; } /* 输入框 */ .search-header{ position: fixed; top: 0; width: 750rpx; height: 91rpx; display: flex; background: #fff; border-bottom: 1px solid rgba(0,0,0,.15); padding: 0 31.25rpx; font-size: 29rpx; color: #333; } .search-header .input-box{ position: relative; margin-top: 16rpx; float: left; width: 0; flex: 1; height: 59rpx; line-height: 59rpx; padding: 0 20rpx; background: #f4f4f4; } .search-header .icon{ position: absolute; top: 14rpx; left: 20rpx; width: 31rpx; height: 31rpx; } .search-header .del{ position: absolute; top: 3rpx; right: 10rpx; width: 53rpx; height: 53rpx; z-index: 10; } .search-header .keywrod{ position: absolute; top: 0; left: 40rpx; width: 506rpx; height: 59rpx; padding-left: 30rpx; } .search-header .right{ margin-top: 24rpx; margin-left: 31rpx; margin-right: 6rpx; width: 58rpx; height: 43rpx; line-height: 43rpx; float: right; } /* 热门关键字,历史搜索 */ .no-search{ height: auto; overflow: hidden; margin-top: 91rpx; } .serach-keywords{ background: #fff; width: 750rpx; height: auto; overflow: hidden; margin-bottom: 20rpx; } .serach-keywords .h{ padding: 0 31.25rpx; height: 93rpx; line-height: 93rpx; width: 100%; color: #999; font-size: 29rpx; } .serach-keywords .title{ display: block; width: 120rpx; float: left; } .serach-keywords .icon{ margin-top: 19rpx; float: right; display: block; margin-left: 511rpx; height: 55rpx; width: 55rpx; } .serach-keywords .b{ width: 750rpx; height: auto; overflow: hidden; padding-left: 31.25rpx; } .serach-keywords .item{ display: inline-block; width: auto; height: 48rpx; line-height: 48rpx; padding:0 15rpx; border: 1px solid #999; margin: 0 31.25rpx 31.25rpx 0; font-size: 24rpx; color: #333; } .serach-keywords .item.active{ color: #f94b4b; border: 1px solid #f94b4b; } /* 搜索辅助 */ .shelper-list{ width: 750rpx; height: auto; overflow: hidden; background: #fff; padding: 0 31.25rpx; } .shelper-list .item{ height: 93rpx; width: 687.5rpx; line-height: 93rpx; font-size: 24rpx; color: #333; border-bottom: 1px solid #f4f4f4; } /* 搜索结果 */ .result-item{ margin-top: 100rpx; height: auto; overflow: hidden; } .result-item .b{ width: 750rpx; padding: 0 6.25rpx; height: auto; overflow: hidden; } .result-item .b .item{ float: left; background: #fff; width: 365rpx; margin-bottom: 6.25rpx; padding-bottom: 33.333rpx; height: auto; overflow: hidden; text-align: center; } .result-item .b .item-b{ margin-left: 6.25rpx; } .result-item .item .img{ width: 302rpx; height: 302rpx; } .result-item .item .name{ display: block; width: 365.625rpx; height: 35rpx; margin: 11.5rpx 0 22rpx 0; text-align: center; overflow: hidden; padding: 0 20rpx; font-size: 30rpx; color: #333; } .result-item .item .price{ display: block; width: 365.625rpx; height: 30rpx; text-align: center; font-size: 30rpx; color: #f94b4b; } /* 无搜索结果 */ .search-result-empty{ width: 100%; height: 100%; padding-top: 300rpx; } .search-result-empty .icon{ margin: 0 auto; display: block; width: 240rpx; height: 240rpx; } .search-result-empty .text{ display: block; width: 100%; height: 40rpx; font-size: 28rpx; text-align: center; color: #999; }