[技術分享] 什麼是 HTML 5 中的資料屬性(data-* attribute) ~ PJCHENder<br>那些沒告訴你的小細節

PHOTO EMBED

Fri Sep 17 2021 08:25:58 GMT+0000 (UTC)

Saved by @chillymood #html

<article data-content="Hello Everyone">
</article>

article::before{
  content: attr(data-content);
}
content_copyCOPY

https://pjchender.blogspot.com/2017/01/html-5-data-attribute.html