index.vue 769 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <div class="simple-search"><input type="text" /></div>
  3. </template>
  4. <script>
  5. export default {}
  6. </script>
  7. <style scoped lang="scss">
  8. .simple-search {
  9. width: 92vw;
  10. height: 9.6vw;
  11. box-shadow: 0px 0.4vw 1vw rgba(51, 51, 51, 0.08);
  12. padding-left: 9.6vw;
  13. padding-right: 1.6vw;
  14. left: 50%;
  15. top: 0;
  16. background-color: #fff;
  17. border-radius: 0.4vw;
  18. &::before {
  19. content: '';
  20. display: block;
  21. background: url(https://static.caimei365.com/www/authentic/h5/icon-search.png)
  22. no-repeat;
  23. width: 6.4vw;
  24. height: 6.4vw;
  25. position: absolute;
  26. background-size: 6.4vw;
  27. left: 1.6vw;
  28. top: 1.6vw;
  29. }
  30. input {
  31. display: block;
  32. width: 100%;
  33. height: 9.6vw;
  34. line-height: 9.6vw;
  35. outline: none;
  36. }
  37. }
  38. </style>