form_style.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <style>
  2. .inner-input {
  3. width: 80px;
  4. height: 14px;
  5. padding: 1px 5px;
  6. line-height: 12px;
  7. }
  8. .goods-spec-box {
  9. position: relative;
  10. margin: 0 10px 10px 0;
  11. vertical-align: middle;
  12. }
  13. .goods-spec-title {
  14. z-index: 2;
  15. width: 40px;
  16. color: #fff;
  17. height: 28px;
  18. position: absolute;
  19. background: #999;
  20. line-height: 28px;
  21. }
  22. .goods-spec-close {
  23. right: 8px;
  24. z-index: 2;
  25. line-height: 28px;
  26. position: absolute;
  27. display: inline-block
  28. }
  29. .goods-spec-btn {
  30. height: 28px;
  31. margin-left: 5px !important;
  32. line-height: 26px !important;
  33. }
  34. .goods-spec-box input {
  35. z-index: 1;
  36. width: 120px;
  37. position: relative;
  38. border: 1px solid #999;
  39. padding: 5px 0 5px 45px;
  40. display: inline-block !important;
  41. }
  42. .goods-spec-box input[type=checkbox] {
  43. z-index: 2;
  44. width: 40px;
  45. height: 28px;
  46. border: none;
  47. cursor: pointer;
  48. appearance: none;
  49. position: absolute;
  50. -webkit-appearance: none;
  51. }
  52. .goods-spec-box input[type=checkbox]:before {
  53. top: 1px;
  54. left: 1px;
  55. width: 40px;
  56. height: 26px;
  57. content: ' ';
  58. position: absolute;
  59. background: #c9c9c9;
  60. }
  61. .goods-spec-box input[type=checkbox]:after {
  62. top: 1px;
  63. left: 1px;
  64. color: #999;
  65. width: 40px;
  66. height: 26px;
  67. content: '\e63f';
  68. font-size: 16px;
  69. line-height: 26px;
  70. position: absolute;
  71. text-align: center;
  72. font-family: 'layui-icon';
  73. }
  74. .goods-spec-box input[type=checkbox]:checked:after {
  75. color: #333;
  76. content: '\e605';
  77. }
  78. </style>