当前位置:网站首页>There are multiple divs in the large div, which are displayed on the same line. After overflow, scroll bars are generated without line breaks
There are multiple divs in the large div, which are displayed on the same line. After overflow, scroll bars are generated without line breaks
2022-07-04 19:25:00 【Memories do not have a dream】
There was a need before , Big div There are multiple div, these div Show on the same line , Under normal circumstances , Or it will overflow and fill up , Or a new line . But how can we generate scrollbars without line breaks after overflow ?
terms of settlement :
<style type="text/css">
.mt {
width: 600px;
height: 200px;
overflow: auto;
}
.mk {
white-space: nowrap;
}
.mj {
width: 150px;
height: 150px;
border: 1px solid #999;
display: inline-block;
}
</style>
</head>
<body>
<div class="mt">
<div class="mk">
<div class="mj"></div><div class="mj"></div><div class="mj"></div><div class="mj"></div><div class="mj"></div><div class="mj"></div><div class="mj"></div><div class="mj"></div><div class="mj"></div>
</div>
</div>
</body>
边栏推荐
- redis分布式锁的8大坑总结梳理
- Go微服务(二)——Protobuf详细入门
- Send and receive IBM WebSphere MQ messages
- 资料下载 丨首届腾讯技术开放日课程精华!
- Shell 编程核心技术《一》
- Safer, smarter and more refined, Chang'an Lumin Wanmei Hongguang Mini EV?
- Shell 編程核心技術《四》
- 《看完就懂系列》字符串截取方法substr() 、 slice() 和 substring()之间的区别和用法
- 【uniapp】uniapp开发app在线预览pdf文件
- Shell programming core technology "three"
猜你喜欢

物联网应用技术的就业前景和现状

升级智能开关,“零火版”、“单火”接线方式差异有多大?

Mxnet implementation of googlenet (parallel connection network)

从实时应用角度谈通信总线仲裁机制和网络流控

联想首次详解绿色智城数字孪生平台 破解城市双碳升级难点

与二值化阈值处理相关的OpenCV函数、方法汇总,便于对比和拿来使用

Safer, smarter and more refined, Chang'an Lumin Wanmei Hongguang Mini EV?

大div中有多个div,这些div在同一行显示,溢出后产生滚动条而不换行

更安全、更智能、更精致,长安Lumin完虐宏光MINI EV?

Go microservice (II) - detailed introduction to protobuf
随机推荐
2022 ByteDance daily practice experience (Tiktok)
Send and receive IBM WebSphere MQ messages
Wireshark网络抓包
Scala basic tutorial -- 17 -- Collection
Nebula importer data import practice
Safer, smarter and more refined, Chang'an Lumin Wanmei Hongguang Mini EV?
“只跑一趟”,小区装维任务主动推荐探索
启牛开的证券账户安全吗?
数组中的第K个最大元素
In flinksql, in addition to data statistics, is the saved data itself a state
Scala basic tutorial -- 19 -- actor
测试工程师如何“攻城”(上)
技术分享 | 接口测试价值与体系
2022CoCa: Contrastive Captioners are Image-Text Fountion Models
1672. 最富有客户的资产总量
Go microservice (II) - detailed introduction to protobuf
C language printing exercise
Oracle with as ORA-00903: invalid table name 多表报错
Leetcode fizzbuzz C # answer
redis分布式锁的8大坑总结梳理