问题描述
我正在寻找可被主要浏览器中的自动填充功能识别的表单字段名称的完整列表 (<input name="...">
).
I'm looking for complete list of form field names (<input name="…">
) that are recognized by auto-fill functions in major browsers.
以下是我发现的一些使用试错法在 Safari 中工作的方法:
Here are some I've found to work in Safari using trial-and-error:
电子邮件
Ecom_ReceiptTo_Postal_Name_First
Ecom_ReceiptTo_Postal_Name_Last
名字
名字
姓氏
姓氏
全名
生日
公司
职位
电话
街道
city
国家
state
(用于美国以外的县)邮政编码
zip
email
Ecom_ReceiptTo_Postal_Name_First
Ecom_ReceiptTo_Postal_Name_Last
first-name
firstname
last-name
lastname
full-name
birthday
company
jobtitle
phone
street
city
country
state
(used for county outside US)postalcode
zip
但是我找不到标题/敬语前缀的单独字段(它仅包含在全名中).
However I couldn't find separate field for title/honorific prefix (it's included in full name only).
Opera's Wand 识别几乎相同的名称,但名称除外,这需要 Ecom_ReceiptTo_Postal_Name_First
和 Ecom_ReceiptTo_Postal_Name_Last
.
Opera's Wand recognizes more or less the same names with exception of name, which requires Ecom_ReceiptTo_Postal_Name_First
and Ecom_ReceiptTo_Postal_Name_Last
.
我找不到手机号码字段.还没有找到获得单独的家庭/工作领域的方法.
I couldn't find field for mobile phone number. Haven't found way to get separate home/work fields.
建议 扩展 autocomplete
属性 以允许开发人员指定这些明确的.
There's proposal to extend autocomplete
attribute to allow developers specify these explicitly.
推荐答案
我不知道您使用的名称.但我知道 Mozilla/Netscape 和 IE 使用 vcard_name 属性来指导自动填充,如此处所述.
I wasn't aware of the names you used. But I knew Mozilla/Netscape and IE use vcard_name attributes to guide autofill as described here.
这篇关于个人数据使用的表单字段名称在浏览器(Safari、Opera)中自动填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!