How to style CSS role

前端 未结 7 644
庸人自扰
庸人自扰 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]
    
    0 讨论(0)
提交回复
热议问题