HTML 通过X2V与vcard下载链接的hCard

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HTML 通过X2V与vcard下载链接的hCard相关的知识,希望对你有一定的参考价值。

#
<!--
Use of the vCard(hCard) microformat, used to mark up contact details of
people, companies, organisations and places. Includes an download link via X2Vs
hcard to vcard-service. Can be styled as a 2-column hcard via CSS)
-->

<div class="vcard">
 	<div class="fn">John Smith</div> <!-- FN = Full Structured Name -->
		    <ul class="communication">
		        <li class="tel">
		           <span class="type">Home/Phone</span>
		           <span class="numbers"> +44 (1234) 56789</span><!-- class "numbers" is for CSS Styling -->
		        </li>
 		        <li class="email">
		           <span><a href="mailto:john@thisisfake.com" title="Write me an email!">email</a></span><!-- obfuscate email with http://www.zapyon.de/spam-me-not/ -->
		        </li>
		        <li class="url">http://thisisfake.com</li>
		    </ul><!--/end communication -->
		    <ul class="adr">
			<li class="street-address">Fake Street<span class="numbers"> 123 Fake Street</span></li><!-- class "numbers" is for CSS Styling -->
			<li class="postal-code">D-<span class="numbers">12345</span><span class="locality"> locality</span></li>
			<li class="country-name">Country</li>
		    </ul>
	</div><!--/vcard-->
	<div id="vcard-download"><a href="http://suda.co.uk/projects/microformats/hcard/get-contact.php?uri=http://yourcontactpage.com" title="Add my contact-details to your adressbook">Download my contact-details as a vCard (via X2V)</a>
</div>

html [html:下载链接]通过带有下载属性的标签强制下载链接。 #html #cakephp

<!-- 
@link https://webdesign.tutsplus.com/ja/tutorials/quick-tip-using-the-html5-download-attribute--cms-23880
-->

<!-- Should be html5. -->
<a href="path/to/file.txt" download="Your Document.txt">Download Document</a>

<!-- In view on CakePHP. -->
<?php echo $this->Html->link(
  '<i class="fa fa-download"></i> Download Document',
  'path/to/file.txt',
  [
    'escape' => false,
    'download' => 'Your Document.txt',
  ]
) ?>

以上是关于HTML 通过X2V与vcard下载链接的hCard的主要内容,如果未能解决你的问题,请参考以下文章

微格式语义问题

Android 使用VCard数据类型 异步进行联系人备份与恢复操作

创建将 vCard 直接添加到地址簿的链接

PHP 下载vCard脚本

下载vCard脚本

手机上csv如何改为vcard