html:
<view class='middle_div'>
<view class='middle_div_one' bindtap="myCustoner">
<image class='middle_div_image' src="../../images/index_1.png"></image>
<p>我的客户</p>
</view>
</view>
css:
.middle_div_one{
height: 140rpx;
width: 30%;
position: relative;
z-index: 0
}
.middle_div_image{
width: 54%;
height: 106rpx;
position: absolute;
bottom: 0;
right: 0;
}
.middle_div_one p{
position: absolute;
top: 0;
left: 18%;
z-index: 10;
}
效果:

博客展示了HTML和CSS相关代码。CSS部分定义了类名为middle_div_one和middle_div_image的样式,包括元素的高度、宽度、位置等属性,还对middle_div_one内的段落标签设置了位置和层级,最后提及了效果。

745

被折叠的 条评论
为什么被折叠?



