Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私が持っている場合
<div role="main"> </div>
mainCSSでスタイルを設定するにはどうすればよいですか?または、IDまたはクラスも追加する必要があり<div>ますか?
main
<div>
I would recommend adding an ID or class. It's the most cross-browser and efficient way.
If you can't do this, then you'll need to use an attribute selector:
div[role="main"]