遮罩层问题
发布于 4 年前 作者 lding 10334 次浏览 来自 问答

我有一个集合  每个item是一个正方形的,一行两个,我想长按时,item的位置出现遮罩层,但是我不知道怎么控制遮罩层的位置,求大神指点

<block wx:for="{{list}}" wx:key="{{index}}">

<view class=‘left’ wx:if="{{index % 2 == 0}}">

<view class=“logoinfo” style=‘width:{{phonewidth}}px;height:{{phonewidth}}px’ bindtap=‘gosetting’ bindlongtap=“longTap” bindtouchstart=“touchStart” bindtouchend=“touchEnd”>

<text class=“logotext”>{{item.name}}</text>

</view>

</view>

<view wx:else>

<view class="logoinfo " style=‘width:{{phonewidth}}px;height:{{phonewidth}}px’ bindtap=‘gosetting’ bindlongtap=“longTap” bindtouchstart=“touchStart” bindtouchend=“touchEnd”>

<text class="logotext ">{{item.name}}</text>

</view>

</view>

</block>

1 回复

css 控制层级即可

回到顶部