关于HTML文件显示不出来的情况

错误的代码:





Insert title here
  


	Visit W3CSchool!
	Useful Tips Section
	Visit the Useful Tips Section 
	 

This is a paragraph.

This is a heading

This is a paragraph.

ball

实验结果:

关于HTML文件显示不出来的情况_第1张图片

what ****k?

查了很久一直没找到头绪,后来发现是base的问题。。。。

  

弄懂这个问题首先要理解这行代码的意思:

关于HTML文件显示不出来的情况_第2张图片

Visit the Useful Tips Section 

这个代码会在下面的路径前面加上base的路径,所以

 
ball

当我想输出这个ball的时候,不会再我的本地查,会直接在w3c网站找,那么路径当然是有问题的啦~~~

正确的姿势是:





Insert title here


	Visit W3CSchool!
	Useful Tips Section
	Visit the Useful Tips Section
	 

This is a paragraph.

This is a heading

This is a paragraph.

ball

删去这个base的默认头

关于HTML文件显示不出来的情况_第3张图片


你可能感兴趣的:(Web)