Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 CSS 类\的属性中写斜杠作为值,content但它打破了单引号,所以我使用\\(双斜杠)。
\
content
\\
a:before { content: '\\'; }
我做对了吗?
对,那是正确的。见这里:http ://www.merttol.com/articles/code/introduction-to-css-escape-sequences.html