Skip to content

Conversation

@060143A
Copy link

@060143A 060143A commented Jan 21, 2021

按键一直对不齐,不会调整显示区和按键区的上下比例,被wxss折磨死了......

按键一直对不齐,不会调整显示区和按键区的上下比例,被wxss折磨死了......
@hunshcn hunshcn self-requested a review January 24, 2021 03:20
Copy link
Contributor

@hunshcn hunshcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

效果不错

<view class="result">
<view class="result-num">{{num}}</view>
<view class="result-op">{{op}}</view>
</view>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个布局还挺有意思,两个tab来把它切割两半,result用absouble定在顶上,效果还不错。不过要实现这个效果最好别这样两个tab,因为上面的tab是没有意义的,你也可以用绝对定位钉在底下或者钉在top50%

this.isClear=false
return
}
this.setData({num:this.data.num+'.'})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

多个点应该是需要判断一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants