Skip to content

Commit cfaf6d2

Browse files
committed
fix: 支付宝小程序 canvas示例 按钮文字不垂直居中 导航栏变形 问题
1 parent 31d0a19 commit cfaf6d2

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

pages/API/canvas/canvas.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,11 @@
355355
356356
.canvas-button {
357357
float: left;
358-
line-height: 2;
358+
display: inline-flex;
359+
align-items: center;
360+
justify-content: center;
361+
height: 40px;
362+
line-height: 1;
359363
width: 300upx;
360364
margin: 15upx 12upx;
361365
}

pages/extUI/nav-bar/nav-bar.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,5 +195,6 @@
195195
line-height: 30px;
196196
width: 94%;
197197
padding: 0 3%;
198+
background: rgba(0,0,0,0);
198199
}
199200
</style>

0 commit comments

Comments
 (0)