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
Volume data volume is an important concept of Doc...
Table of contents Preface 1. Configure routing na...
1. The role of doctype, the difference between st...
byzhangxinxu from https://www.zhangxinxu.com/word...
There are several ways I know of to set anchor pos...
Table of contents 1. Solution 2. MySQL character ...
When MySQL queries tens of millions of data, most...
1. Make sure the network connection method is bri...
Recently, I want to regularly back up important i...
Table of contents Overview Front-end knowledge sy...
Table of contents 1. React combined with Antd to ...
Table of contents Preface 1. Iceraven Browser (Fi...
Install MySQL under Windows for your reference. T...
We all know the drag-and-drop feature of HTML5, w...
MySQL can be set when it is installed, but it see...