We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码如下 test.wxml
<view class="solid box"> <button bindtap="clickConsole" class="btn primary">测试 solid </button> </view>
test.js
Page({ clickConsole: function() { console.log('click!'); } })
css也能导致按钮的bindtap事件失效,发现把.solid::after的宽度高度设为100%就可以了,或者加上pointer-events: none
.solid::after
pointer-events: none
.solid::after { position: absolute; top: 0; left: 0; width: 200%; height: 200%; content: " "; -webkit-transform: scale(.5); transform: scale(.5); -webkit-transform-origin: 0 0; transform-origin: 0 0; pointer-events: none }
The text was updated successfully, but these errors were encountered:
已解决,在wcss中加入了pointer-events: none
Sorry, something went wrong.
No branches or pull requests
代码如下
test.wxml
test.js
css也能导致按钮的bindtap事件失效,发现把
.solid::after
的宽度高度设为100%就可以了,或者加上pointer-events: none
The text was updated successfully, but these errors were encountered: