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
Some fault code tables use the following design p...
1. Execute the select statement first to generate...
I saw in the LOFTER competition that it was mentio...
MySQL allows you to create multiple indexes on th...
The property of centering text in CSS is very simp...
MySQL tuning Explain tool detailed explanation an...
1. Check sql_mode select @@sql_mode The queried v...
Method 1: hostnamectl modification Step 1 Check t...
This article shares the specific code for importi...
The execution relationship between the href jump ...
If there is an <input type="image">...
First: action is an attribute of form. HTML5 has d...
Table of contents 1. Operation of js integer 2. R...
Preface Sass is an extension of the CSS3 language...
Usually the pictures uploaded by users need to be...