The front-end uniapp prevents the entire page from sliding above the top of the page. Set the fixed area to fix the width and height.

Solution: Set fixed and want to fix the width and height of the area

Unmodified before picture

Please add image description

Unchanged style

.main {
    
    
		display: flex;
		flex-direction: row;
		// justify-content: space-between;
		width: 100vw;
		// 防止全部移动到上面位置!!!!!!!!!84vh随时改变
		height: calc(100vh - 44px);
	}

Picture after modification

Please add image description

Changed style

.main {
    
    
		display: flex;
		flex-direction: row;
		// justify-content: space-between;
		width: 100vw;
		// 防止全部移动到上面位置!!!!!!!!!84vh随时改变
		height: calc(84vh - 44px);
	}

Guess you like

Origin blog.csdn.net/m0_49714202/article/details/133376273