index.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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: #222222;
  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. }
  21. .note-title {
  22. position: relative;
  23. width: 100%;
  24. color: #000;
  25. background-color: #e4be32;
  26. user-select: none;
  27. cursor: default;
  28. }
  29. .note-title h6 {
  30. margin: 0;
  31. padding-left: 15px;
  32. font-size: 16px;
  33. font-weight: 700;
  34. height: 40px;
  35. line-height: 40px;
  36. }
  37. .note-title .btn-close {
  38. position: absolute;
  39. height: 40px;
  40. width: 40px;
  41. line-height: 40px;
  42. right: 0;
  43. top: 0;
  44. color: #000;
  45. text-align: center;
  46. text-decoration: none;
  47. }
  48. .note-title .btn-close:hover {
  49. background-color: #c3a01e;
  50. color: #fff;
  51. }
  52. .note-content {
  53. height: 300px;
  54. padding: 10px;
  55. overflow-y: auto;
  56. outline: none;
  57. }
  58. .note-footer {
  59. height: 40px;
  60. line-height: 40px;
  61. display: -webkit-flex;
  62. display: -moz-flex;
  63. display: -ms-flex;
  64. display: -o-flex;
  65. display: flex;
  66. }
  67. .note-footer .btn-new,
  68. .note-footer .btn-remove {
  69. flex: 1;
  70. width: 40px;
  71. height: 40px;
  72. color: #333;
  73. text-align: center;
  74. font-size: 16px;
  75. font-weight: 700;
  76. text-decoration: none;
  77. outline: none;
  78. border: none;
  79. background-color: #e4be32;
  80. }
  81. .note-footer .btn-new:hover,
  82. .note-footer .btn-remove:hover {
  83. opacity: 0.7;
  84. color: #fff;
  85. }
  86. </style>
  87. <script type="text/javascript" src="js/app.js"></script>
  88. </head>
  89. <body>
  90. </body>
  91. </html>