newsDetail.jsp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <%
  8. String basePath = request.getScheme() + "://"
  9. + request.getServerName() + ":" + request.getServerPort()
  10. + request.getContextPath() + "/";
  11. %>
  12. <meta name="viewport"
  13. content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
  14. <link rel="apple-touch-icon" href="images/apple-touch-icon.png" />
  15. <link rel="apple-touch-startup-image"
  16. href="images/apple-touch-startup-image-320x460.png" />
  17. <title>新闻公告</title>
  18. <base href="<%=basePath%>jsps/mobile/" />
  19. <link
  20. href='http://fonts.useso.com/css?family=Source+Sans+Pro:400,300,700,900'
  21. rel='stylesheet' type='text/css' />
  22. <style type="text/css">
  23. #content {
  24. font-size: 14px;
  25. width: 100%;
  26. bottom: 50px;
  27. height: 80% !important;
  28. }
  29. html {
  30. overflow-x: hidden;
  31. overflow-y: auto;
  32. }
  33. img {
  34. max-width: 100%;
  35. }
  36. .bottombar {
  37. background-color: #0972b9;
  38. position: fixed;
  39. bottom: 0px;
  40. width: 100%;
  41. height: 50px;
  42. }
  43. </style>
  44. </head>
  45. <script type="text/javascript"
  46. src="<%=basePath%>resource/jquery/jquery-1.8.0.min.js"></script>
  47. <script type="text/javascript"
  48. src="<%=basePath%>resource/bootstrap/bootstrap.min.js"></script>
  49. <script type="text/javascript">
  50. var basePath = (function() {
  51. var fullPath = window.document.location.href;
  52. var path = window.document.location.pathname;
  53. var subpos = fullPath.indexOf('//');
  54. var subpath = subpos > -1 ? fullPath.substring(0, subpos + 2) : '';
  55. if (subpos > -1)
  56. fullPath = fullPath.substring(subpos + 2);
  57. var pos = fullPath.indexOf(path), sname = path.substring(0, path.substr(1).indexOf('/') + 1);
  58. return subpath + fullPath.substring(0, pos) + (sname == '/ERP' ? '/ERP/' : '/');
  59. })();
  60. </script>
  61. <script type="text/javascript"
  62. src="<%=basePath%>resource/jquery/jquery-1.8.0.min.js"></script>
  63. <body>
  64. <div id="content">${content}</div>
  65. <!-- 按钮触发模态框 -->
  66. <div style="height: 50px;"></div>
  67. </body>
  68. </html>