uniApp-解决富文本编辑框编辑时软键盘弹出 布局往上推的问题

1、page.json文件配置(不起作用)

			"style": {
				"app-plus": {
					"softinputMode": "adjustResize"
				}
			}

加上后对于使用富文本编辑器插件的情况不起作用

2、动态设置整个页面容器的高度(有效)

	onLoad() {
		this.height = uni.getSystemInfoSync().windowHeight
	 },

绑定在style上

<style lang="scss" scoped>
	.container {
		height: v-bind('height');
    }
</style>
posted @ 2024-02-29 11:22  DurianTRY  阅读(88)  评论(0编辑  收藏  举报