<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title><sitemesh:title/></title>
    <%@include file="/WEB-INF/views/include/head.jsp" %>
    <sitemesh:head/>
</head>
<body <sitemesh:getProperty property="body.class" writeEntireProperty="true" />>
    <sitemesh:body/>
    <%@include file="/WEB-INF/views/include/footer.jsp" %>
</body>
</html>

用过的一看就明白了 关键在这一句 : <sitemesh:getProperty property="body.class" writeEntireProperty="true" />

相关文章:

  • 2022-12-23
  • 2021-05-22
  • 2021-12-09
  • 2021-12-18
  • 2021-08-18
  • 2021-09-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-22
  • 2021-12-29
  • 2022-01-29
  • 2021-11-24
  • 2021-06-02
  • 2021-07-19
相关资源
相似解决方案