当前位置:网站首页>微信小程序之input前加图标
微信小程序之input前加图标
2022-06-23 13:12:00 【qq_45911550】
参考链接
1、wxml代码
<view class='search'>
<view class='searchItem'>
<image src='../../images/passwd.png' />
<input placeholder='请输入'></input>
</view>
</view>
2、wxss代码
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;
}
效果如下:
边栏推荐
- 同花顺网上开户安全吗,需要注意什么
- Esp32-c3 introductory tutorial problem ⑦ - fatal error: ESP_ Bt.h: no such file or directory ESP not found_ bt.h
- Strengthen the sense of responsibility and bottom line thinking to build a "safety dike" for flood fighting and rescue
- 1 channel 100m optical fiber transceiver 1 100m optical 1 100m electric desktop Ethernet optical fiber transceiver built-in power supply
- 腾讯云TDSQL-C重磅升级,性能全面领跑云原生数据库市场
- Oracle中dbms_output.put_line怎么使用
- 『忘了再学』Shell流程控制 — 39、特殊流程控制语句
- 深入剖析MobileNet和它的变种
- Quartus II 13.1 detailed installation steps
- TUIKit 音视频低代码解决方案导航页
猜你喜欢

智能数字看板解决方案

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

AI 参考套件

实战 | 如何制作一个SLAM轨迹真值获取装置?

C语言的基本数据类型及其打印输出

90%的人都不懂的泛型,泛型的缺陷和应用场景

Online text filter less than specified length tool

Proofs of Elsevier Elsevier Journal (Neptune Neptune) (problems encountered: latex remove the chapter number)

OS的常见用法(图片示例)

Broadcast level E1 to aes-ebu audio codec E1 to stereo audio XLR codec
随机推荐
Generics, generic defects and application scenarios that 90% of people do not understand
快速了解常用的非对称加密算法,再也不用担心面试官的刨根问底
火绒安全与英特尔vPro平台合作 共筑软硬件协同安全新格局
在線文本過濾小於指定長度工具
Is it safe for flush to open an account online? What should we pay attention to
Digraph D and e
quartus调用&设计D触发器——仿真&时序波验证
618's money saving technology strategy is coming - experience the scene and get a 10 yuan cat super card!
那些技术实战中的架构设计方法
4-way telephone +1-way Gigabit Ethernet 4-way PCM telephone optical transceiver
TUIKit 音视频低代码解决方案导航页
How deci and Intel can achieve up to 16.8x throughput improvement and +1.74% accuracy improvement on mlperf
4E1 PDH optical transceiver 19 inch rack type single fiber transmission 20km E1 interface optical network optical transceiver
Hanyuan high tech new generation green energy-saving Ethernet access industrial switch high efficiency energy-saving Gigabit Industrial Ethernet switch
Has aaig really awakened its AI personality after reading the global June issue (Part 1)? Which segment of NLP has the most social value? Get new ideas and inspiration ~
Oracle中dbms_output.put_line怎么使用
Tuikit audio and video low code solution navigation page
逆向调试入门-了解PE结构文件
MIT 6.031 reading5: version control learning experience
RestCloud ETL解决shell脚本参数化