Commit f8190957 by 前端

修改箭头点击区域

1 parent 241d0c65
...@@ -2,16 +2,20 @@ ...@@ -2,16 +2,20 @@
<div> <div>
<!-- 左箭头 开始 --> <!-- 左箭头 开始 -->
<div class="left_arrow"> <div class="left_arrow">
<div class="arrow_inner" @click="leftClickEvent">
<img src="@/assets/images/arrow_left.png" class="img" alt="" @click="leftClickEvent" /> <img src="@/assets/images/arrow_left.png" class="img" alt="" @click="leftClickEvent" />
<img src="@/assets/images/arrow_circle.png" class="circle" alt="" /> <img src="@/assets/images/arrow_circle.png" class="circle" alt="" />
</div> </div>
</div>
<!-- 左箭头 end --> <!-- 左箭头 end -->
<!-- 右箭头 开始 --> <!-- 右箭头 开始 -->
<div class="right_arrow"> <div class="right_arrow">
<img src="@/assets/images/arrow_right.png" class="img" alt="" @click="rightClickEvent" /> <div class="arrow_inner" @click="rightClickEvent">
<img src="@/assets/images/arrow_right.png" class="img" alt="" />
<img src="@/assets/images/arrow_circle.png" class="circle" alt="" /> <img src="@/assets/images/arrow_circle.png" class="circle" alt="" />
</div> </div>
</div>
<!-- 右箭头 end --> <!-- 右箭头 end -->
</div> </div>
</template> </template>
...@@ -54,20 +58,28 @@ export default { ...@@ -54,20 +58,28 @@ export default {
bottom: 0; bottom: 0;
z-index: 10; z-index: 10;
width: 100px; width: 100px;
.arrow_inner {
position: fixed;
width: 100px;
height: 50vh;
top: 50%;
transform: translateY(-50%);
z-index: 14;
cursor: pointer;
}
.img { .img {
width: 48px; width: 48px;
height: 48px; height: 48px;
opacity: 0; opacity: 0;
cursor: pointer; cursor: pointer;
position: fixed; position: absolute;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
z-index: 12;
} }
.circle { .circle {
width: 84px; width: 84px;
height: 84px; height: 84px;
position: fixed; position: absolute;
top: 50%; top: 50%;
// transform: translateY(-50%); // transform: translateY(-50%);
margin-top: -42px; margin-top: -42px;
...@@ -103,6 +115,7 @@ export default { ...@@ -103,6 +115,7 @@ export default {
animation: rotate360 1.2s ease-out 0s; animation: rotate360 1.2s ease-out 0s;
} }
} }
@keyframes rotate360 { @keyframes rotate360 {
100% { 100% {
transform: rotate(360deg); transform: rotate(360deg);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!