Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the view view container in Mini Program

Shulou Source: shulou.com Published: 2022-05-31 21:01:29 10月03日 Update

This article mainly explains "how to use the view view container in Mini Program", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to use the view view container in Mini Program.

Index.wxml

Index.wxss

.outBlock {border:1rpx solid black; width: 1000rpx; height: 500rpx; background-color:aqua;} .midBlock {border:1rpx solid black; width:500rpx; height: 300rpx; margin: 100rpx; background-color: gray;} .inBlock {border:1rpx solid black; width: 300rpx; height: 200rpx; margin: 50rpx; background-color: blueviolet;} .outBlockHover {background-color: black;} .midblock Hover {background-color: darkblue;} .inBlockHover {background-color: darkgreen;}

The data part of index.js

Data: {outStart:1000, midStart:2000, inStart:3000}

Normally, when we click on any of the innermost box, the rest will change, and the outermost box in the middle will also change because of the scope, because the innermost box is contained in the middle, the outer box, and the middle box. If we want to stop this effect, we need to use hover-stop-propagation. Propagation literally means to spread, and hover-stop-propagation means, in popular terms, to prevent the effect from spreading out.

At this point, I believe you have a deeper understanding of "how to use the view view container in Mini Program". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Container program view meaning content that is effect time face spread learn practical deeper popular interest reason practicality reality situation simple operation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi OPPO Reno Shulou Information macOS MariaDB