当前位置:网站首页>The hole of scroll view in uniapp
The hole of scroll view in uniapp
2022-07-25 08:51:00 【Yaba 902】
1.scroll-view by scroll-x="true" when
(1)scroll-view The child element of , Floating cannot be used float
(2)scroll-view Use outer container display:flex It's invalid
(3) If you want to achieve flex Horizontal effect , Please set the child element to slide to display:inline-block And set its width and height
(4) Add attributes to the outer container overflow:hidden;white-space:nowrap;
html Code
<scroll-view scroll-x="true" class="limit-act-con">
<view class="act-img" v-for="(item,index) in list3" :key="index">
<img :src="item" alt="">
</view>
</scroll-view>style Code
.limit-act-con {
overflow:hidden;
white-space:nowrap;
.act-img {
display: inline-block;
margin-right: 16rpx;
dislay:inline-block;
img {
width: 332rpx;
height: 160rpx;
border-radius: 20rpx;
}
}
}2.scroll-view by scroll-y="true" when
Just set the height of the outer container
边栏推荐
- 技术面②Mysql中的索引(index)类型有哪些并简要介绍一下?什么时候需要创建索引?什么时候不需要创建索引?为什么创建索引后查询速度会提高?
- Arcgis10.2 installation tutorial
- Wechat reservation of small program completion works (5) assignment book of small program graduation project
- Redis/Mysql知识概述
- PL/SQL工具导出sql文件所使用的命令是什么?
- @Autowired的使用
- Bigdecimel in words
- 附加:中半部分sql语句 区/县(数据表)
- Basis 33: XPath acquisition methods of page elements under various browsers
- Illustration leetcode - 919. Complete binary tree inserter (difficulty: medium)
猜你喜欢

Data warehouse ODS, DWD floor, 220616, HM,

JD cloud and Forrester consulting released a hybrid cloud report that cloud Nativity has become a new engine driving industrial development

为什么要使用MQ消息中间件?这几个问题必须拿下!

Huawei device remote login (Telnet, SSH) configuration

Yolov5 environment configuration

uni-app

【npm】 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。

Wechat reservation applet graduation design of applet completion works (1) development outline

51 single chip microcomputer key control LED light status

table表格展开内部行切换效果
随机推荐
NVIDIA programmable reasoning accelerator tensorrt learning notes (II) - practical operation
聊下自己转型测试开发的历程
富文本样式文字图片处理
Swift initializer and optional chain
Wechat sports field reservation of the finished works of the applet graduation project (4) opening report
Django4.0 + web + MySQL 5.7 realize simple login operation
51 single chip microcomputer key control LED light status
Basis 33: XPath acquisition methods of page elements under various browsers
uniapp中scroll-view的坑
Swift初始化器及可选链
js弹出式城市筛选组件匹配手机移动端
全网最简约的sklearn环境配置教程(百分百成功)
PL/SQL工具导出sql文件所使用的命令是什么?
51单片机内部外设:定时器和计数器
@Use of data annotation (instead of get and set methods in entity classes)
Initial knowledge of WebService (generate jar packages and call methods in remote services)
附加:在在下部分区/县(数据表)
flink sql怎么持久化?
提高代码可续性的小技巧,以connectTo方法为例。
uni-app