flower.vue 721B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <div class="flower">
  3. <img src="/images/pg3/线轮廓.png" alt="">
  4. <Flower1 class="bg-lv1" />
  5. </div>
  6. </template>
  7. <script setup>
  8. import Flower1 from './flower1.vue';
  9. </script>
  10. <style lang="less" scoped>
  11. .flower {
  12. position: relative;
  13. width: 64vw;
  14. height: 64vw;
  15. display: flex;
  16. justify-content: center;
  17. align-items: center;
  18. & > img {
  19. z-index: 0;
  20. position: absolute;
  21. display: block;
  22. height: 100%;
  23. right: 0;
  24. }
  25. // background-image: url(./images/pg3/线轮廓.png);
  26. // background-size: 100% 100%;
  27. // background-repeat: no-repeat;
  28. // background-position-x: 16.67vw;
  29. .bg-lv1 {
  30. flex: none;
  31. width: 56vw;
  32. height: 56vw;
  33. z-index: 1;
  34. }
  35. }
  36. </style>