当前位置: 代码迷 >> HTML/CSS >> 解决jsp中Element (center) is obsolete. Its use is discouraged in HTML5 documents。有关问题
  详细解决方案

解决jsp中Element (center) is obsolete. Its use is discouraged in HTML5 documents。有关问题

热度:1039   发布时间:2012-10-28 09:54:44.0
解决jsp中Element (center) is obsolete. Its use is discouraged in HTML5 documents。问题



?1、可以把jsp 代码 置于此标签里
<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
??? <jsp:directive.page language="java"
??????? contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
??? <jsp:text>
??????? <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
??? </jsp:text>
??? <jsp:text>
??????? <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
??? </jsp:text>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body>

</body>
</html>
</jsp:root>?
2、建立jsp页面时直接选择??就可以了

  相关解决方案