index.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>js便笺</title>
  6. <style type="text/css">
  7. body {
  8. margin: 0;
  9. padding: 0;
  10. background-color: #fff;
  11. }
  12. .note-container {
  13. position: absolute;
  14. width: 300px;
  15. height: 400px;
  16. background-color: #f1f180;
  17. box-shadow: 0 3px 20px rgba(0, 0, 0, .25);
  18. border-radius: 5px;
  19. overflow: hidden;
  20. box-shadow: 0 0 20px #000;
  21. }
  22. .note-title {
  23. position: relative;
  24. width: 100%;
  25. color: #000;
  26. background-color: #e4be32;
  27. user-select: none;
  28. cursor: default;
  29. }
  30. .note-title h6 {
  31. margin: 0;
  32. padding-left: 15px;
  33. font-size: 16px;
  34. font-weight: 700;
  35. height: 40px;
  36. line-height: 40px;
  37. }
  38. .note-title .btn-close {
  39. position: absolute;
  40. height: 40px;
  41. width: 40px;
  42. line-height: 40px;
  43. right: 0;
  44. top: 0;
  45. color: #000;
  46. text-align: center;
  47. text-decoration: none;
  48. }
  49. .note-title .btn-close:hover {
  50. background-color: #c3a01e;
  51. color: #fff;
  52. }
  53. .note-content {
  54. height: 300px;
  55. padding: 10px;
  56. overflow-y: auto;
  57. outline: none;
  58. }
  59. .note-footer {
  60. height: 40px;
  61. line-height: 40px;
  62. display: -webkit-flex;
  63. display: -moz-flex;
  64. display: -ms-flex;
  65. display: -o-flex;
  66. display: flex;
  67. }
  68. .note-footer .btn-new,
  69. .note-footer .btn-remove {
  70. flex: 1;
  71. width: 40px;
  72. height: 40px;
  73. color: #333;
  74. text-align: center;
  75. font-size: 16px;
  76. font-weight: 700;
  77. text-decoration: none;
  78. outline: none;
  79. border: none;
  80. background-color: #e4be32;
  81. }
  82. .note-footer .btn-new:hover,
  83. .note-footer .btn-remove:hover {
  84. opacity: 0.7;
  85. color: #fff;
  86. }
  87. </style>
  88. <script type="text/javascript" src="js/app.js"></script>
  89. </head>
  90. <body>
  91. </body>
  92. </html>