eclipse 处理指令未关闭 html 中的错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21813983/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Processing instruction not closed error in html
提问by Lachu
Hi i am very new to developing , I started to type HTML code in eclipse but it showing processing instruction not closed error .I don't know how to solve please help me .. Thanks in advance
嗨,我是开发新手,我开始在 Eclipse 中键入 HTML 代码,但它显示处理指令未关闭错误。我不知道如何解决,请帮助我.. 提前致谢
<!DOCTYPE html>
<html>
<body>
<div class="banner_page">
<div style="width: 90%; margin: 16px 0px 16px 104px;"></div>
<div class="header_menu">
<div style="float: left;">
<ul>
<li>Home</li>
<li>Pages</li>
<li>Mega menu</li>
<li>Gallery</li>
<li>Blog</li>
<li>Support</li>
<li>Contact</li>
</ul>
</div>
</div>
</div>
</body>
</html>
回答by Atul Chavan
Select all your code, then BACKSPACE, then CTRL+Zto revert back the changes.
选择所有代码,然后选择BACKSPACE,然后CTRL+Z恢复更改。
回答by Ivan Pronin
- Select all your code CTRL+A, copy it CTRL+С.
- Delete original file.
- Create a new file with the same name, paste CTRL+Vthe copied code and save changes.
- 选择所有代码CTRL+A,复制它CTRL+С。
- 删除原始文件。
- 创建一个同名的新文件,粘贴CTRL+V复制的代码并保存更改。
回答by dhutchinson
I tabbed your code out and it appears you are missing a closing DIV tag
我把你的代码标签了,看来你缺少一个关闭的 DIV 标签
<!DOCTYPE html>
<div class="banner_page">
<div style="width: 90%; margin: 16px 0px 16px 104px;"></div>
<div class="header_menu">
<div style="float: left;">
<ul>
<li>Home</li>
<li>Pages</li>
<li>Mega menu</li>
<li>Gallery</li>
<li>Blog</li>
<li>Support</li>
<li>Contact</li>
</ul>
</div>
</div>
</div>
<!-- you need another closing div tag here for banner_page -->
</body>
</html>
回答by Singupurapu prudhvi raj
Just close the JSP tab and reopen it will solve
只需关闭 JSP 选项卡并重新打开它即可解决

