什么是“数据签名” HTML属性? [英] What is the "data-sigil" HTML attribute?
本文介绍了什么是“数据签名” HTML属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚遇到一个网站,其中包含data-sigil作为HTML元素的属性,例如 a
, div
, label
, abbr
。
一个字符串值,如下所示:
< a class =a1classhref =/ more.phpdata-sigil = 一些-描述 >详情< / A>
使用Google搜索data-sigilHTML属性只产生了一个邮件列表发布,这在HTML的上下文中似乎没有多少解释属性。
任何想法是什么神秘的data-sigilHTML属性都可以?
解决方案
以 data -
开头的任何属性都是 HTML 5数据属性。
I just came across a website that has "data-sigil" as an attribute for HTML elements like a
, div
, label
, abbr
.
It accepts a string value, like this:
<a class="a1class" href="/more.php" data-sigil="some-description">More</a>
Googling "data-sigil" HTML attribute yielded only a mailing list posting which doesn't seem to explain much in the context of an HTML attribute.
Any idea what that mysterious "data-sigil" HTML attribute could be?
解决方案
Any attribute starting with data-
is an HTML 5 data- attribute.
这篇关于什么是“数据签名” HTML属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文