Hidden characters in CSS

后端 未结 2 1277
傲寒
傲寒 2021-01-20 15:42

I have been hours with a code that did not work and I could not find the problem. I simplified the problem to find it. At the end I find a hidden character, a character I co

2条回答
  •  借酒劲吻你
    2021-01-20 16:00

    The character is a UTF-8 zero-width space: e2 80 8b. When the CSS parser reaches this character, it stops reading the file.

    The solution is just to not put these in in the first place. They aren't valid as part of CSS. If you have existing ones you need to remove, you can open the file with a hex editor to identify their positions.

提交回复
热议问题