图片.png

    1. /*价格搜索input框*/
    2. input, button {
    3. border: none;
    4. outline: none;
    5. }
    6. .tl-price-input{
    7. width: 100%;
    8. border: 1px solid #ccc;
    9. padding: 7px 0;
    10. background: #F4F4F7;
    11. border-radius: 3px;
    12. padding-left:5px;
    13. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    14. box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    15. -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    16. -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    17. transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s
    18. }
    19. .tl-price-input:focus{
    20. border-color: #66afe9;
    21. outline: 0;
    22. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
    23. box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)
    24. }
    25. .ant-btn {
    26. line-height: 1.499;
    27. position: relative;
    28. display: inline-block;
    29. font-weight: 400;
    30. white-space: nowrap;
    31. text-align: center;
    32. background-image: none;
    33. border: 1px solid transparent;
    34. -webkit-box-shadow: 0 2px 0 rgba(0,0,0,0.015);
    35. box-shadow: 0 2px 0 rgba(0,0,0,0.015);
    36. cursor: pointer;
    37. -webkit-transition: all .3s cubic-bezier(.645, .045, .355, 1);
    38. transition: all .3s cubic-bezier(.645, .045, .355, 1);
    39. -webkit-user-select: none;
    40. -moz-user-select: none;
    41. -ms-user-select: none;
    42. user-select: none;
    43. -ms-touch-action: manipulation;
    44. touch-action: manipulation;
    45. height: 32px;
    46. padding: 0 15px;
    47. font-size: 14px;
    48. border-radius: 4px;
    49. color: rgba(0,0,0,0.65);
    50. background-color: #fff;
    51. border-color: #d9d9d9;
    52. }
    53. //蓝色按钮
    54. .ant-btn-primary {
    55. color: #fff;
    56. background-color: #1890ff;
    57. border-color: #1890ff;
    58. text-shadow: 0 -1px 0 rgba(0,0,0,0.12);
    59. -webkit-box-shadow: 0 2px 0 rgba(0,0,0,0.045);
    60. box-shadow: 0 2px 0 rgba(0,0,0,0.045);
    61. }
    62. //红色按钮,如上图
    63. .ant-btn-red {
    64. color: #fff;
    65. background-color: #FF5A44;
    66. border-color: #FF5A44;
    67. text-shadow: 0 -1px 0 rgba(0,0,0,0.12);
    68. -webkit-box-shadow: 0 2px 0 rgba(0,0,0,0.045);
    69. box-shadow: 0 2px 0 rgba(0,0,0,0.045);
    70. }
    1. <div>
    2. <div style="width: 90px;float: left"><input class="tl-price-input" type="text" placeholder="最低价"></div>
    3. <div style="width: 20px;float: left;text-align: center">-</div>
    4. <div style="width: 90px;float: left"><input class="tl-price-input" type="text" placeholder="最高价"></div>
    5. <div style="width: 60px;float: left;margin-left: 20px"><button class="ant-btn ant-btn-red">确定</button></div>
    6. </div>