How to style CSS role

前端 未结 7 642
庸人自扰
庸人自扰 2021-02-03 16:12

In the following HTML

the id can be accessed through #content in CSS. How do I access

7条回答
  •  有刺的猬
    2021-02-03 17:11

    Use CSS attribute selectors:

    https://developer.mozilla.org/en-US/docs/CSS/Attribute_selectors

    e.g.:

    div[role=main]
    

提交回复
热议问题