This article example shares the specific code for the WeChat applet to implement the search box function for your reference. The specific content is as follows Effect: wxml file: <view class="search_input" > <navigator url="/pages/search/search" open-type="navigate" class="navigator"> <text class="iconfont icon-guanbi"></text> Search</navigator> </view> The icon style needs to be imported into text, here we use iconfont .search_input { height: 90rpx; background-color: #eb4450; padding: 10rpx; } .search_input .navigator{ background-color: #fff; height: 100%; display: flex; justify-content: center; align-items: center; border-radius: 15rpx; color: #999; font-size: 32rpx; } In .js: If the component references the global style, you need to add the following attributes options:{ addGlobalClass:true, }, The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: What the website needs most is to improve the experience of the target user group
>>: Web Design TabIndex Element
<br />When thoughts were divided into East a...
Table of contents 1. React combined with Antd to ...
This article deploys Jenkins+Maven+SVN+Tomcat thr...
I have been making websites for a long time, but I...
Recently, the client of a project insisted on hav...
There are many tags and elements in the HTML head ...
[LeetCode] 175.Combine Two Tables Table: Person +...
CI/CD Overview CI workflow design Git code versio...
Table of contents 1. Data Manipulation Language (...
This article example shares the specific code of ...
This article shares a sharing sidebar implemented...
Table of contents 1. Download WeChat developer to...
Table of contents 1. Discover the problem 2. Dele...
Preface When I was typing my own personal blog, I...
Today we are going to create a simple heartbeat e...