view的重叠问题
来源:互联网 发布:android 模仿知乎 编辑:程序博客网 时间:2024/05/16 09:33
废话不多说先看效果!
这个布局如何实现对于新手的我来说还是比较难的 研究了半天搞出来了
<view class = "view-groupComponent"> <view class = "view-component"> <view class = "view-componentL"> <view class = "view-mixtureImg"> <image src="../../images/head.jpg" class = "img-rectStyle" ></image> <image src="../../images/icon_champion.png" class = "img-wrapRect" ></image> </view> <view > <text class = "text-ellipsiStyle">青春梦想队</text> </view> </view>
样式
/*图像*/.view-mixtureImg{ height: 200rpx;}.img-rectStyle{ width: 170rpx; height: 170rpx; border-radius: 15rpx;}.img-inside{ width: 180rpx; height: 180rpx; border-radius: 50%;}/*外部边框图*/.img-wrap{ width: 260rpx; height: 200rpx; position: relative; bottom: 200rpx; text-align: center;}
还有另一种效果
布局
<block wx:for="{{groups}}" wx:key = "{{index}}"> <view class = "view-groupItem"> <view class = "view-memberClickNum"> <image src="{{item.groupImg}}"></image> <text class = "text-itemNum">0</text> </view> <text class="text-groupName">{{item.groupName}}</text> </view> </block>
样式
/*用户的图像*/.view-groupItem{ display: inline-block; width: 115rpx; height: 120rpx; margin: 10rpx; text-align: center; margin-top: 20rpx;}.view-memberClickNum{ position: relative;}.view-memberClickNum image{ width: 115rpx; height: 115rpx; border-radius: 15rpx;}.text-groupName{ font-size: 26rpx; width: 115rpx; display: block; overflow: hidden; color: #978378; word-break: keep-all; white-space: nowrap; text-overflow: ellipsis;}
阅读全文
1 0
- view的重叠问题
- Framelayout里view重叠时的刷新问题
- margin重叠的问题
- Fragment重叠的问题
- 关于view的drawRect多次被调用出现绘图重叠问题
- android 重叠view 重叠布局
- 表格边框重叠的问题
- 解决DIV重叠的问题
- css margin重叠的问题
- 有关内存重叠的问题
- tableviewcell addsubview的重叠问题
- UITableView 的cell重叠问题
- 避免TableViewCell重叠的问题
- TableViewCell重叠问题的解决办法
- CSS的margin重叠问题
- css的margin重叠问题
- 彻底解决Fragment重叠的问题
- margin重叠问题的解决方案
- HDU1754(线段树模板题)(没有用懒操作)
- Java 中常用缓存Cache机制的实现
- 关于特征选择的几种算法
- easyui datagrid getChecked方法,只能获取一行
- 如何编译安装 protocolBuffer(for C++)
- view的重叠问题
- Tinker初探
- websocket范例
- Angular 2 组件之间如何通信
- 数据库
- 稳定排序
- 反射帮助ReflectionWraper
- MongoDB实战-面向文档的数据(找到最合适的数据建模方式)
- 对caffe处理数据过程的浅显理解