在开发QuickApp时,在将输入元素的类型设置为按钮并设置边框半径属性后,当点击按钮时,按钮不会按预期响应(背景颜色更改)。如果边框半径属性被删除,该按钮将再次正常工作。
<template>
<div class="page-wrapper">
<input type="button" class="button" value="Animation" />
</div>
</template>
<script>
</script>
<style>
.page-wrapper {
flex-direction: column;
justify-content: center;
align-items: center;
}
.button {
color: #20a0ff;
background-color: red;
padding: 10px 20px;
border-radius: 40px;
}
</style>如何在快速应用程序按钮中使用边框半径CSS功能。
发布于 2021-08-31 09:33:06
设置边框半径属性后,由于Quick App Engine底层的限制,无法自动实现tap效果。
设置边框半径属性后,您可以使用快速应用的伪类来实现按钮点击效果。
.button:active{
background-color: green;
}https://stackoverflow.com/questions/68996286
复制相似问题