detail.jsp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <jsp:include page="../common/common-meta-include.jsp"></jsp:include>
  9. <jsp:include page="../common/common-js-include.jsp"></jsp:include>
  10. <jsp:include page="../common/common-css-include.jsp"></jsp:include>
  11. <!--[if lt IE 9]>
  12. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  13. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  14. <![endif]-->
  15. <style type="text/css">
  16. .container {
  17. width: 80%;
  18. margin-top: 50px;
  19. margin-left: 10%;
  20. background-color: #ecf5f5;
  21. min-height: 90%;
  22. }
  23. .title {
  24. text-align: center;
  25. padding-top: 50px;
  26. font-size: 30px;
  27. }
  28. .publishDate{
  29. float: right;
  30. padding-right: 15%;
  31. padding-top: 20px;
  32. }
  33. .content{
  34. width: 80%;
  35. margin-top: 50px;
  36. font-size: 20px;
  37. margin-left: 10%;
  38. background-color: aliceblue;
  39. min-height: 800px;
  40. }
  41. </style>
  42. </head>
  43. <body>
  44. <div class="container">
  45. <div class="layuimini-main">
  46. <div class="layui-form" lay-filter="formData">
  47. <h2 class="title">${notice.title }</h2>
  48. <div class="publishDate">
  49. <label>发布时间:<fmt:formatDate value="${notice.publishDate }" pattern="yyyy-MM-dd HH:mm:ss"/></label>
  50. </div>
  51. <div class="content">
  52. ${notice.content}
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </body>
  58. </html>