移动Chrome不会提供扫描信用卡 [英] Mobile Chrome won't offer to scan Credit Card
问题描述
我们正在为我们的网站设置信用卡自动填充功能。我们在HTML中添加了自动填充标记,例如 cc-number
,用于信用卡号字段。但是,当我点按移动浏览器中的信用卡号字段时,Chrome不提供扫描信用卡。我在15分钟前通过Google Play更新了Chrome,我使用的是Android 6.可能是什么原因?
We're setting up credit card autocomplete for our website. We have added autocomplete tags in HTML , such as cc-number
for Credit card number field. However, when I tap on the credit card number field in mobile browser, Chrome does not offer to scan credit card. I've updated Chrome over Google Play 15 minutes ago, and I use Android 6. What could be the cause?
推荐答案
设置html属性需要为你的文本字段设置,
Set of html attributes need to set for your text field,
type =number,pattern =([0-9] {5}),inputmode =数字
type = "number", pattern="([0-9]{5})", inputmode="numeric"
文本字段的id或name属性应为CreditCardNumber或文本字段的标签应为信用卡号
And id or name attribute for the text field should read "CreditCardNumber" or label for your text field should read "Credit Card Number"
这篇关于移动Chrome不会提供扫描信用卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!