停用Chrome自动填充信用卡
我在表单中有两个字段,Chrome将它们错误地标识为信用卡号(一个是电话号码,一个是传真号码). Chrome认为姓氏字段也有两个,Chrome认为这是信用卡名称的字段,并且要自动填充.我可以在这些元素上使用一些属性来告诉Chrome实际上它们与信用卡无关吗?
I have two fields in my form which Chrome falsely identified as credit card numbers (one is for a phone number and one is for a fax number). There are also two fields for firstnames which Chrome thinks are fields for credit card names and want to autofill. Is there some attribute I can use on these elements to tell Chrome that they are in fact not related to a credit card?
我尝试在输入上设置autocomplete ="false".这删除了地址/联系信息的自动填充选项,但是信用卡选项仍然存在.
I've tried setting autocomplete="false" on the inputs. This removed the autofill options for address/contact information, but the credit card option was still there.
我终于找到了解决方法!将自动完成属性设置为"cc-csc",该值是信用卡的CVC,并且不允许其存储! (目前...)
I finally found a workaround! set the autocomplete attribute as "cc-csc" that value is the CVC of a credit card and that they are no allowed to store it! (for now...)
autocomplete ="cc-csc"
autocomplete="cc-csc"