Browser will not display image

筅森魡賤 提交于 2020-01-07 06:58:07

问题


I'm building a simple website example where I added an image. I'm using textedit on mac. However, special characters are being added to the file when I look in Chrome's inspector.

In textedit I type

<img src =“images/nicole.png”>

But it displays as

<img src="“images/nicole.pngâ€""> 

Why is this happening?


回答1:


The quote you are currently using is a Unicode version (Most likely the Chinese version). That's why it is showing as those weird chars. Try to copy and paste this " into your code instead of typing them in should fix it. You might want to check your IME setting or text editor setting to prevent it in the future.




回答2:


In the TextEdit preferences (TextEdit menu > Preferences), uncheck "Smart quotes" under Options.

You will have to go through and replace all of them.



来源:https://stackoverflow.com/questions/32534052/browser-will-not-display-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!