如何解决这个烂摊子? [英] how to fix this mess?

查看:91
本文介绍了如何解决这个烂摊子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习HTML,通常使用PC,但是这次我使用Mac来查看Mac的感觉,
我是这样写的:

i am learning HTML and usually use a PC,but, this time i used a mac to see what it would be like for a mac,
i wrote this:

<!DOCTYPE html>
<html>
<body>
<p>hi</p>
</body>
</html>

,当它在Google Chrome浏览器中打开时我得到了它:
bplist00 ?? _ ??WebMainResource ?????? ? _ ?? WebResourceFrameName _ ?? WebResourceTextEncodingName _ ?? WebResourceData
_ ?? WebResourceMIMEType ^
WebResourceURLPUutf-8O ?????
<!DOCTYPE html>
< html>
< body>

hi

and i got this when it opened in Google Chrome:
bplist00�_WebMainResource� _WebResourceFrameName_WebResourceTextEncodingName_WebResourceData
_WebResourceMIMEType^
WebResourceURLPUutf-8O�
<!DOCTYPE html>
<html>
<body>

hi

推荐答案

Windows,MAC OS X或任何其他系统之间没有互操作性问题,也没有任何问题.如果您发现一些问题,那一定是因为您做了一些非常怪异的事情.如果您准确地描述它是什么,该问题将可以解决.

—SA
There are no any problems of interoperability between Windows, MAC OS X or any other systems, no problems whatsoever. If you see some problem, it must be because you have done something extremely weird. If you accurately describe what it was, the problem would become addressable.

—SA


我猜测您的文本编辑"没有将其存储为纯文本开头,因此多余的符号是文件元数据/标题.更改文件扩展名,而不只是保存为HTML,首先要公开其他数据(这些数据不应出现在HTML文件中,并导致其在Chrome中损坏).

我建议尝试再次创建文件 TextMate [
I''m guessing your "text edit" didn''t store it as plain text to begin with, so the extra symbols are file metadata/headers. Changing the file extension instead of just saving as HTML to begin with exposed the additional data (which shouldn''t be present in an HTML file and caused it to break in Chrome).

I suggest trying to create the file again TextMate[^] (Mac users tell me it''s good for this kind of thing), and save it as an HTML file directly.


这篇关于如何解决这个烂摊子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆