news_content.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!DOCTYPE html>
  2. <html data-bs-theme="light" lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
  6. <title>test1</title>
  7. <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
  9. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">
  10. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/styles.css">
  11. <link rel="stylesheet" href="{dreamer-cms:template /}assets/share/css/share.min.css">
  12. <link rel="stylesheet" type="text/css" href="{dreamer-cms:template /}assets/css/animate.min.css">
  13. <style>
  14. @media(max-width:750px) {
  15. .new-content-body {
  16. background-size: contain;
  17. width: 90%;
  18. height: auto;
  19. margin: 0 auto;
  20. display: block;
  21. }
  22. .new-content-body span {
  23. text-wrap: wrap;
  24. }
  25. }
  26. #content {
  27. width: 90%;
  28. height: 100%;
  29. padding: 0;
  30. margin: 10px auto;
  31. }
  32. .dreamer-prevnext li {
  33. list-style: none;
  34. }
  35. .dreamer-prevnext a {
  36. text-decoration: none;
  37. color: inherit;
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. {dreamer-cms:include file='loading.html'/}
  43. {dreamer-cms:include file='header.html'/}
  44. <main>
  45. <section>
  46. <div class="p-2">
  47. <div><img style="width: 100%;object-fit: cover;" data-src="{dreamer-cms:article field='litpic' /}"
  48. src="{dreamer-cms:template /}assets/img/none.png"></div>
  49. </div>
  50. </section>
  51. {dreamer-cms:include file='back.html'/}
  52. <section>
  53. <div class="p-2 py-4 py-xl-5">
  54. <div class="row mb-lg-5 mb-2">
  55. <div class="col-md-8 col-xl-6 text-center mx-auto">
  56. <h2>{dreamer-cms:article field="title" /}</h2>
  57. <p class="w-lg-50 d-flex flex-column flex-sm-row justify-content-around">
  58. <span style="color: rgb(137, 137, 137);">
  59. {dreamer-cms:article field="updatetime" /}
  60. </span>
  61. <span style="color: rgb(137, 137, 137);">
  62. 作者:{dreamer-cms:article field="realname" /}
  63. </span>
  64. </p>
  65. </div>
  66. </div>
  67. <div class="row gy-4 row-cols-1 row-cols-lg-1 row-cols-xl-1 justify-content-center">
  68. <div class="col-xxl-8 col-sm-12 col-lg-8 col-xl-8 " id="content">
  69. {dreamer-cms:article field="content" /}
  70. </div>
  71. </div>
  72. <div class="row justify-content-center mt-lg-5 mt-2">
  73. <div class="col-xxl-8 text-start col-12 col-lg-8 col-xl-8">
  74. <div class="row gx-0" style="height: 70px;">
  75. <div class="social-share" data-title="{dreamer-cms:article field='title' /}"
  76. data-sites="qq, weibo, wechat" data-description="分享" style="text-align: center;">
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="row mt-lg-5 mt-2">
  82. {dreamer-cms:prevnext layout="prev,next" /}
  83. </div>
  84. </div>
  85. </section>
  86. </main>
  87. {dreamer-cms:include file='footer.html'/}
  88. <script src="{dreamer-cms:template /}assets/js/jquery.min.js"></script>
  89. <script type="text/javascript" src="{dreamer-cms:template /}assets/js/wow.min.js"></script>
  90. <script src="{dreamer-cms:template /}assets/js/main.js"></script>
  91. <script src="{dreamer-cms:template /}assets/bootstrap/js/bootstrap.min.js"></script>
  92. <script src="{dreamer-cms:template /}assets/js/bs-init.js"></script>
  93. <script src="{dreamer-cms:template /}assets/share/js/social-share.min.js"></script>
  94. <script>
  95. $(function () {
  96. var pArr = document.querySelectorAll("#content p")
  97. pArr.forEach(element => {
  98. element.style.width = "100%"
  99. });
  100. var imgArr = document.querySelectorAll("#content img")
  101. imgArr.forEach(i => {
  102. i.style.width = "100%"
  103. i.style.height = "auto"
  104. let src = i.getAttribute("src")
  105. i.setAttribute("data-src", src)
  106. i.setAttribute("src", "{dreamer-cms:template /}assets/img/none.png")
  107. });
  108. })
  109. </script>
  110. <script src="{dreamer-cms:template /}assets/js/image.js"></script>
  111. </body>
  112. </html>