.instruments-head{background-color:#f6f6f6;width:100%;height:200rpx;border-bottom:1px solid #e5e5e5;padding:20rpx 2rpx 20rpx 20rpx;margin-bottom:20rpx;.instruments-scroll{white-space: nowrap;.instruments-scroll-item{display: inline-block;margin-right:20rpx;width:160rpx;height:160rpx;positio...
padding-bottom: 60rpx; } .scroll-H-item { display: inline-block; width: 300rpx; height: 200rpx; }
{ vertical-align: top; display: inline-block; height: 94rpx; line-height: 94rpx; font-size: 28rpx; color: #333333; letter-spacing: 0; padding:0 22rpx; margin: 0 22rpx; border-bottom: 6rpx solid #fff; } .nav-active{ font-weight: bold; border-bottom: 6rpx solid #333; } ....
uniapp在scroll-view的子元素使用粘性定位固定在顶部,当滑动一定距离后粘性定位会失效,大概是滑动相当于为scroll设置的高度 <template> <view class="leader_content"> <!-- 导航小图标 --> <view class="tabber flex justify-center align-center" :style="{ paddingTop: statusBarHeight + 'px', height: ...
padding-left: 28rpx; } .color_view { text-align: center; display: inline-flex; flex-direction: column; } .brand_block { margin-top: 28rpx; margin-left: 28rpx; } image { width: 140rpx; height: 140rpx; margin-right: 24rpx; margin-bottom: 24rpx; border-style: solid; border-width...
解决办法: 给scroll-view容器 加以下样式 width: 100%; white-space: nowrap; 子元素(滚动的item项)display:inline-block;可以实现横向滚动.hhhs-content { padding: 0 0 0 43rpx; width: 100%; white-space: nowrap scroll-x uni-app scroll-x不起作用...
{ id: 3, title: "3333" }, { id: 4, title: "3333" }, { id: 5, title: "3333" }, ], 此外无论是组件还是写在一个页面内 最大的盒子记得加上height:100%; .bottomBox { width: 100%; // 一定不能给固定宽度,会失效 height: 100%; b...
最后在 measureChild 方法里,将分割线 ItemDecoration 的尺寸加入到 itemView 的 padding 中。 但是大家都知道缓存并不是总是可用的,mInsetsDirty 这个 boolean 字段来记录它的时效性,当 mInsetsDirty 为 false 时,说明缓存可用,直接取出可以,当 mInsetsDirty 为 true 时,说明缓存的分割线属性就需要重新计算了。