当前位置:   article > 正文

todolist 案例 JavaScript_todolist案例js

todolist案例js

css样式

  1. body {
  2. margin: 0;
  3. padding: 0;
  4. font-size: 16px;
  5. background: #CDCDCD;
  6. }
  7. header {
  8. height: 50px;
  9. background: #333;
  10. background: rgba(47, 47, 47, 0.98);
  11. }
  12. section {
  13. margin: 0 auto;
  14. }
  15. label {
  16. float: left;
  17. width: 100px;
  18. line-height: 50px;
  19. color: #DDD;
  20. font-size: 24px;
  21. cursor: pointer;
  22. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  23. }
  24. header input {
  25. float: right;
  26. width: 60%;
  27. height: 24px;
  28. margin-top: 12px;
  29. text-indent: 10px;
  30. border-radius: 5px;
  31. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24), 0 1px 6px rgba(0, 0, 0, 0.45) inset;
  32. border: none
  33. }
  34. input:focus {
  35. outline-width: 0
  36. }
  37. h2 {
  38. position: relative;
  39. }
  40. span {
  41. position: absolute;
  42. top: 2px;
  43. right: 5px;
  44. display: inline-block;
  45. padding: 0 5px;
  46. height: 20px;
  47. border-radius: 20px;
  48. background: #E6E6FA;
  49. line-height: 22px;
  50. text-align: center;
  51. color: #666;
  52. font-size: 14px;
  53. }
  54. ol,
  55. ul {
  56. padding: 0;
  57. list-style: none;
  58. }
  59. li input {
  60. position: absolute;
  61. top: 2px;
  62. left: 10px;
  63. width: 22px;
  64. height: 22px;
  65. cursor: pointer;
  66. }
  67. p {
  68. margin: 0;
  69. }
  70. li p input {
  71. top: 3px;
  72. left: 40px;
  73. width: 70%;
  74. height: 20px;
  75. border: 0px;
  76. line-height: 14px;
  77. text-indent: 5px;
  78. font-size: 14px;
  79. }
  80. li p input:focus {
  81. outline: 1px solid black;
  82. }
  83. li {
  84. height: 32px;
  85. line-height: 32px;
  86. background: #fff;
  87. position: relative;
  88. margin-bottom: 10px;
  89. padding: 0 45px;
  90. border-radius: 3px;
  91. border-left: 5px solid #629A9C;
  92. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
  93. }
  94. ol li {
  95. cursor: move;
  96. }
  97. ul li {
  98. border-left: 5px solid #999;
  99. opacity: 0.5;
  100. }
  101. li a {
  102. position: absolute;
  103. top: 2px;
  104. right:
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/640795
推荐阅读
相关标签
  

闽ICP备14008679号