简体   繁体   中英

Should I create a new CSS file for each HTML page if I am using CSS Grid?

Is there a way to use only 1 CSS file whilst using CSS grid to position unique content for multiple different web pages? Or do I have to create a new CSS file for each web page.

如果您.myGridRule CSS类(例如.myGridRule编写的网格规则,并将其存储在style.css ,则可以在所需的每个页面上导入该文件,并将该类应用于所需的元素。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM