data-*属性的作用_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 08:56:27
Original
1510 people have browsed it

我知道是自定义的属性,可以存一些值。但直接加属性到html标签,然后存值也能实现,是因为这样不规范吗,所以有了data-*


回复讨论(解决方案)

http://www.zhangxinxu.com/wordpress/2011/06/html5%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B1%9E%E6%80%A7%E5%AF%B9%E8%B1%A1dataset%E7%AE%80%E4%BB%8B/

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template