编程为自己制作名片
As a vcard file – the digital equivalent of a business card – the hcard format is supported in most devices and contact managers, such as Blackberry and eMail software. It makes sense to allow a site visitor to download the address information for a company into their contact manager software. To do so:
作为vcard文件(与名片等效),hcard格式在大多数设备和联系人管理器(如Blackberry和电子邮件软件)中均受支持。 允许站点访问者将公司的地址信息下载到其联系人管理器软件中是很有意义的。 为此:
- Create an entry for the company in any application that supports the vCard format (Microsoft Outlook, Apple Mail, etc). 在支持vCard格式的任何应用程序(Microsoft Outlook,Apple Mail等)中为公司创建一个条目。
Export the entry as a
.vcf
file (for example, send an eMail with the contact information included as an attachment).将条目导出为
.vcf
文件(例如,发送包含联系信息作为附件的电子邮件)。Upload the
.vcf
file to your website.将
.vcf
文件上传到您的网站。- Create a link to the file from a webpage, as you would link any other file. 与链接任何其他文件一样,从网页创建指向该文件的链接。
Depending on your server setup and the software that the site visitor uses, you may find that the browser tries to display the file rather than downloading it. To forestall this, write the following line in your site’s .htaccess
file: AddType text/x-vcard .vcf
根据您的服务器设置和网站访问者使用的软件,您可能会发现浏览器尝试显示文件而不是下载文件。 为此,请在网站的.htaccess
文件中写以下行:AddType text / x-vcard .vcf
I’ve completed a vcard with some personal contact information and linked to it so you can see the result for yourself.
我已经完成了一个vcard,其中包含一些个人联系信息,并已链接至该卡片,以便您自己查看结果。
翻译自: https://thenewcode.com/667/Make-A-Digital-Business-Card-For-All-Devices
编程为自己制作名片