gpt4 book ai didi

css - 导入样式文件没有作用域?

转载 作者:行者123 更新时间:2023-11-28 17:10:36 25 4
gpt4 key购买 nike

当我尝试像这样导入 CSS 文件时,CSS 没有作用域。

必须在style标签里写style才行???

我使用 vue-cli 来试试这个

<style scoped>
@import "hell.css";
</style>

最佳答案

正如 Phil 提到的那样,尝试一下,

As best I can tell, <style scoped> has been removed from the specs andeven browsers that were supporting it have pulled it.

enter image description here

关于css - 导入样式文件没有作用域?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46212419/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com