搜索方式更改

master
Lee 2022-09-14 10:41:54 +08:00
parent 02be11d072
commit 8fae6238f8
2 changed files with 8 additions and 1 deletions

View File

@ -292,12 +292,17 @@
.search-input { .search-input {
width: calc(100% - .6rem); width: calc(100% - .6rem);
line-height: .8rem; line-height: .8rem;
-webkit-appearance: none;
} }
.search-input::-webkit-input-placeholder { .search-input::-webkit-input-placeholder {
color: #868686; color: #868686;
} }
.search-input::-webkit-search-cancel-button{
-webkit-appearance: none;
}
.search img { .search img {
width: .4rem; width: .4rem;
height: .4rem; height: .4rem;

View File

@ -18,7 +18,9 @@
<body class="business-body"> <body class="business-body">
<!-- 商户搜索 --> <!-- 商户搜索 -->
<div class="search radius25 border-box flex"> <div class="search radius25 border-box flex">
<input class="search-input font24" type="text" placeholder="商户搜索"> <form action="">
<input class="search-input font24" type="search" placeholder="商户搜索" autocomplete="off">
</form>
<img src="../images/icon/icon-search.png" alt="搜索"> <img src="../images/icon/icon-search.png" alt="搜索">
</div> </div>
<!-- 商户列表 --> <!-- 商户列表 -->