CSS: Is there any difference between these two parts?

后端 未结 2 1635
滥情空心
滥情空心 2021-01-25 00:01

Is there any difference? I do not see. The first doesn\'t work, the second works. It is the same file (other files are not touched).

相关标签:
2条回答
  • 2021-01-25 00:48

    The problem was in the one mystic character (on line 81 on the screenshot). I've only been not using an option 'Show invisible characters' in my code editor.

    CSS with invisible characters


    I've removed this character and the problem was solved. I don't really know, how this character (ASCII 0x8 (“backspace”)) appeared here.

    Thank you all the people who responded on this question and advised different solutions.

    UPD: I've created the related question, about putting 0x08 character on MacBook into a text: How can I put 0x08 ascii character using MacBook?

    0 讨论(0)
  • 2021-01-25 00:58

    if the first part is in the beginning of the file: may be you use UTF-8 with BOM encoding. change the encoding to UTF-8 without BOM or ASCII.

    BOM add three bytes at the start of the file, and many old programs\systems sees "#items" in your file.

    0 讨论(0)
提交回复
热议问题