当前位置:网站首页>Add Icon before input of wechat applet
Add Icon before input of wechat applet
2022-06-23 13:51:00 【qq_ forty-five million nine hundred and eleven thousand five hu】
Reference link
1、wxml Code
<view class='search'>
<view class='searchItem'>
<image src='../../images/passwd.png' />
<input placeholder=' Please enter '></input>
</view>
</view>
2、wxss Code
view.search {
display: flex;
flex-direction: row;
align-items: center;
}
view.searchItem {
display: flex;
width: 100%;
}
view.searchItem image {
height: 42rpx;
width: 42rpx;
align-self: center;
}
view.searchItem input {
flex: 1;
font-size: 30rpx;
}
The effect is as follows :
边栏推荐
- 90%的人都不懂的泛型,泛型的缺陷和应用场景
- 何小鹏:如果可以回到创业的时候 不会以自己的名字给产品命名
- 20000 words + 30 pictures | MySQL log: what is the use of undo log, redo log and binlog?
- Intelligent digital signage solution
- 微信小程序之input调整
- Configure SSH Remote Login for H3C switch
- windows 安装 MySQL
- Detailed explanation of serial port, com, UART, TTL, RS232 (485) differences
- Androd Gradle模块依赖替换如何使用
- 首次曝光!唯一全域最高等级背后的阿里云云原生安全全景图
猜你喜欢

微信小程序之input调整

How to correctly calculate the number of rows imported into EXCEL (poi/npoi)

White paper - Intel and Ashling, a well-known risc-v tool provider, strive to expand multi platform risc-v support

CRMEB 二开短信功能教程

爱思唯尔-Elsevier期刊的校稿流程记录(Proofs)(海王星Neptune)(遇到问题:latex去掉章节序号)

What are the conditions for a mature knowledge management?
![[Yunzhou said live room] - digital security special session will be officially launched tomorrow afternoon](/img/56/a6a9fbba0a9fc212883b469bb857c5.png)
[Yunzhou said live room] - digital security special session will be officially launched tomorrow afternoon

20000 words + 30 pictures | MySQL log: what is the use of undo log, redo log and binlog?

Simplify deployment with openvino model server and tensorflow serving

Proofs of Elsevier Elsevier Journal (Neptune Neptune) (problems encountered: latex remove the chapter number)
随机推荐
[Yunzhou said live room] - digital security special session will be officially launched tomorrow afternoon
MySQL single database and table splitting using MYCAT
Is it safe for flush to open an account online? What should we pay attention to
MIT 6.031 reading5: version control learning experience
Tencent cloud tdsql-c heavy upgrade, leading the cloud native database market in terms of performance
Loss, duplication and backlog of message queues
Monitor the cache update of Eureka client
quartus調用&設計D觸發器——仿真&時序波驗證
The way out after the development of Internet technology -- the birth of IVX
Stick to five things to get you out of your confusion!
How did Tencent's technology bulls complete the overall cloud launch?
串口、COM、UART、TTL、RS232(485)区别详解
Modelsim 安装步骤详解
有向图D和E
How to solve the task cache compilation problem caused by gradle build cache
如何正确计算导入Excel的行数(POI/NPOI)
IEEE transaction journal revision process record
AI 参考套件
5 technical vulnerabilities related to NFT
Use openvinotm preprocessing API to further improve the reasoning performance of yolov5