📌  相关文章
📜  按数据选择元素 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:54.986000             🧑  作者: Mango

代码示例1
If you're talking aabout the inner content of an element, this is impossible with CSS3.
However, you can use this for the data attributes of an element:

    div [data-value="foo"] {
          display: block;
    }

- GameGlitz