content.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. module.exports = `<title>富文本示例</title>
  2. <div>
  3. <section style="text-align: center; margin: 0px auto;">
  4. <section style="border-radius: 4px; border: 1px solid #757576; display: inline-block; padding: 5px 20px;">
  5. <span style="font-size: 18px; color: #595959;">表格</span>
  6. </section>
  7. </section>
  8. <section style="margin-top: 1.5em;">
  9. <table width="100%" border="1" cellspacing="0" cellpadding="5" style="border-collapse: collapse;">
  10. <thead>
  11. <tr>
  12. <th>标题 1</th>
  13. <th>标题 2</th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. <tr>
  18. <td align="center"></td>
  19. <td align="center">内容 2</td>
  20. </tr>
  21. <tr>
  22. <td align="center">内容 3</td>
  23. <td align="center">内容 4</td>
  24. </tr>
  25. <tr>
  26. <td align="center">内容 5</td>
  27. <td align="center">内容 6</td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </section>
  32. <section style="text-align: center; margin: 0px auto; margin-top: 2em">
  33. <section style="border-radius: 4px; border: 1px solid #757576; display: inline-block; padding: 5px 20px;">
  34. <span style="font-size: 18px; color: #595959;">文本</span>
  35. </section>
  36. </section>
  37. <section style="margin-top: 1.5em;">
  38. &ldquo;富文本编辑器&rdquo;不同于文本编辑器,程序员可到网上下载免费的富文本编辑器内嵌于自己的网站或程序里(当然付费的功能会更强大些),方便用户编辑文章或信息。这是一条<a href="https://github.com/jin-yufeng/mp-html">链接</a>
  39. </section>
  40. <section style="text-align: center; margin: 0px auto; margin-top: 2em">
  41. <section style="border-radius: 4px; border: 1px solid #757576; display: inline-block; padding: 5px 20px;">
  42. <span style="font-size: 18px; color: #595959;">图片</span>
  43. </section>
  44. </section>
  45. <section style="margin-top: 1.5em; text-align: center;">
  46. <img src="/demo-thumb.jpg?sign=91b3e495d16f96a0df3d263c9ff95821&t=1609059235" original-src="/demo.jpg?sign=af7082bed28711177bd952dbab67373e&t=1609059255">
  47. </section>
  48. </div>`