Bug情况:
当在wxss中为<input>定义了background-image并使用url(data:image/png;base64,........)时,图片可以正确显示,但会重复两次。这个问题只在input标签中测试过,别的情况不知道是不是也这样,且只在开发者工具中出现,真机测试时没有问题。具体情况见代码和截图:
wxml:
< input type = "text" name = "keywords" maxlength = "50" placeholder-class = "placeholder" placeholder = "快速搜索动作..." bindinput = "searchExerciseByKeywords" /> |
wxss:
.searcharea input { width : 100% ; box-sizing: border-box; font-size : 14px ; line-height : 14px ; background-color : white ; border : 1px solid #cccccc ; border-radius: 5px ; overflow : hidden ; height : 36px ; vertical-align : middle ; background-image : url (data:image/png;base 64 ,iVBORw 0 KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP 4 ixAAAAGXRFWHRTb 2 Z 0 d 2 FyZQBBZG 9 iZSBJbWFnZVJlYWR 5 ccllPAAAAyZpVFh 0 WE 1 MOmNvbS 5 hZG 9 iZS 54 bXAAAAAAADw/eHBhY 2 tldCBiZWdpbj 0 i 77 u/IiBpZD 0 iVzVNME 1 wQ 2 VoaUh 6 cmVTek 5 UY 3 prYzlkIj 8 +IDx 4 OnhtcG 1 ldGEgeG 1 sbnM 6 eD 0 iYWRvYmU 6 bnM 6 bWV 0 YS 8 iIHg 6 eG 1 wdGs 9 IkFkb 2 JlIFhNUCBDb 3 JlIDUuNS 1 jMDIxIDc 5 LjE 1 NTc 3 MiwgMjAxNC 8 wMS 8 xMy 0 xOTo 0 NDowMCAgICAgICAgIj 4 gPHJkZjpSREYgeG 1 sbnM 6 cmRmPSJodHRwOi 8 vd 3 d 3 LnczLm 9 yZy 8 xOTk 5 LzAyLzIyLXJkZi 1 zeW 50 YXgtbnMjIj 4 gPHJkZjpEZXNjcmlwdGlvbiByZGY 6 YWJvdXQ 9 IiIgeG 1 sbnM 6 eG 1 wPSJodHRwOi 8 vbnMuYWRvYmUuY 29 tL 3 hhcC 8 xLjAvIiB 4 bWxuczp 4 bXBNTT 0 iaHR 0 cDovL 25 zLmFkb 2 JlLmNvbS 94 YXAv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PfJUVqHTcX 1 y 0 GY 9 MpJ 8 xFKVOEjYqBC 0 PRgghC+ymvEvH 65 SnUjU 2 TG 4 UZ 7 BTyXqesC 012 EolxHmKdlbeZQWq 8 FIx 6 B 44 XyQw/IFC 62 S+ 2 TccRqQYzttiGAXKT 6 eaLhoVwJsPVDpe 6 XL 8 AbveC 77 BT 7 zaOOXpljzXKONfV/z 2 s 8 syv 8 kwEuO 4 I 4 N 682 GV 8 lRkqZdMmfquzGCw 1 +XYfF 4 xp 2 s 2 uo 8 hSksmBvrmw 3 PleW 2 DumGPCrAWbsA 53 hDO 83 PeDGcENFA 5 rlcwrmVCZeXJjiexy 1 CoXMMlC 0 Lh 6 X 2 +CZp 3 gSbLaQQGiaW 6 E 9 zraVQY 3 g 6 SuSaqQzbkSV 2 R 929 FPKnzwvAfWeK 5 Qrm 4 LhVUeEE 3 /ZgZyWiRrh/PbfKAs 9 Hq/ 0 Mxj 4 ieRWn 3 Pwpx 3 Kkn 74 jpgZ 36 V 4 ABAF 6 N 5 zWbAZM 0 AAAAAElFTkSuQmCC); background-repeat : no-repeat ; background- size : 25px 25px ; background-position : 10px 5px ; padding : 0 10px 0 40px ; } |
结果:
你好,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)