uniapp 输入框输入时,会将内容顶上去的解决方案

javascript 复制代码
// 设置页面最小高度
export const setPageMinHeight = () => {
	return {
		'position': 'relative',
		'min-height': uni.getSystemInfoSync().windowHeight + 'px'
	}
}

页面使用:

javascript 复制代码
import {
		setPageMinHeight
	} from "@/utils/uniUtil";


data() {
			return {
				minHeight: setPageMinHeight(),
相关推荐
CHB7 小时前
uni-app x 蒸汽模式 性能测试基准报告 Benchmark【Android版】
android·ios·uni-app
游戏开发爱好者82 天前
系统状态:专为iPhone和iPad设计的实时系统性能监控工具全面介绍
android·ios·小程序·uni-app·iphone·webview·ipad
2501_915909062 天前
全面解析iOS应用上架到App Store的完整流程与关键注意事项
android·macos·ios·小程序·uni-app·cocoa·iphone
2501_915106323 天前
iOS 证书类型及作用说明 账号证书与签名配置的完整解读
android·ios·小程序·https·uni-app·iphone·webview
2501_916008893 天前
移动安全之 APP 加固,保障移动应用安全的重要手段
安全·macos·ios·小程序·uni-app·iphone·xcode
2501_915106324 天前
Python爬虫从零开始:七天掌握HTTP协议、数据解析与反爬策略
android·ios·小程序·https·uni-app·iphone·webview
90后的晨仔4 天前
uni-app 项目目录结构全解:每个文件、每个文件夹的作用与配置详解
vue.js·uni-app
爱看老照片4 天前
关于uniapp中单位rpx的注意点
uni-app·rpx
郑州光合科技余经理4 天前
代驾系统架构拆解:订单链路、权限组织与私有化源码交付
开发语言·后端·算法·架构·系统架构·uni-app·php
2501_915921435 天前
详细解析,iOS 应用上架 App Store 的完整流程与指南
android·ios·小程序·https·uni-app·iphone·webview