有下划线并提示 The word is not correctly spelled, 此问题是Eclipse校验单词拼写造成的。
解决办法如下:
Window--Preference输入spell,然后把第一个复选框“Enable spell checking“去掉对勾就可以了,如图:
又出现了新的问题:
报错:No grammar constraints (DTD or XML schema).....
解决办法:
在xml文件的头部添加:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd">