Assuming I create several CSS files, how can I link them in HTML all in one tag, instead of putting them one by one?
You can link css files from a css file using @import:
For instance if you have a style.css on your index.html then you can reference other css files from it:
@import "navigation.css"; /* Relative file */
@import url("navigation.css"); /* Using a url */
I hope this is what u are looking for, cheers
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.