摘要: vue style 的实现主要通过css 的属性选择器 什么是属性选择器? 答:用于判断标签属性的一种选择器 <style> .a[self_attribute]{ ... } </style> <!-- 生效 --> <div self_attribute class="a"></div> <!- 阅读全文
posted @ 2023-10-14 23:49 探索星空 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 除了上一篇博客https://www.cnblogs.com/adamr/p/17753396.html,利用js 移除和添加css资源文件,还有一个更为简单的做法,那就是css的属性选择器 <head> <style> [theme="dark"]{ --status-colors-error: 阅读全文
posted @ 2023-10-14 00:42 探索星空 阅读(14) 评论(0) 推荐(0) 编辑