我想知道是否有办法从 .css 文件编辑一个特定的 .html 文件。(没有其他CSS文件或样式标签)
您可以像这样编辑特定的类:
p.class1 {
color: blue;
}
Run Code Online (Sandbox Code Playgroud)
那么有没有办法只针对特定文件编辑CSS .html?像这样的东西?:
p.file1.html {
color: blue; \\text is blue just in file1.html
}
Run Code Online (Sandbox Code Playgroud)