当前位置:网站首页>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>
边栏推荐
- Technology sharing | interface testing value and system
- 6.26cf simulation match B: solution to array reduction problem
- 正则替换【JS,正则表达式】
- 2022-07-04: what is the output of the following go language code? A:true; B:false; C: Compilation error. package main import 'fmt' func
- Oracle with as ORA-00903: invalid table name 多表报错
- OpenCV的二值化处理函数threshold()详解
- Detailed explanation of issues related to SSL certificate renewal
- Scala basic tutorial -- 15 -- recursion
- IBM WebSphere MQ检索邮件
- Shell programming core technology "I"
猜你喜欢
MySQL数据库基本操作-DDL | 黑马程序员
2022CoCa: Contrastive Captioners are Image-Text Fountion Models
Build your own website (15)
升级智能开关,“零火版”、“单火”接线方式差异有多大?
神经网络物联网平台搭建(物联网平台搭建实战教程)
Stream流
性能优化之关键渲染路径
[uniapp] uniapp development app online Preview PDF file
Scala basic tutorial -- 15 -- recursion
更安全、更智能、更精致,长安Lumin完虐宏光MINI EV?
随机推荐
[opencv introduction to mastery 9] opencv video capture, image and video conversion
Build your own website (15)
Learning path PHP -- phpstudy "hosts file does not exist or is blocked from opening" when creating the project
From automation to digital twins, what can Tupo do?
OpenCV的二值化处理函数threshold()详解
[mathematical basis of machine learning] (I) linear algebra (Part 1 +)
大佬们,求助一下,我用mysql cdc 2.2.1(flink 1.14.5)写入kafka,设置
神经网络物联网应用技术就业前景【欢迎补充】
千万不要只学 Oracle、MySQL!
1672. Total assets of the richest customers
性能优化之关键渲染路径
页面元素垂直水平居中、实现已知或者未知宽度的垂直水平居中。
Esp32-c3 introductory tutorial questions ⑫ - undefined reference to ROM_ temp_ to_ power, in function phy_ get_ romfunc_ addr
Caché JSON 使用JSON适配器
神经网络物联网应用技术学什么
Go微服务(二)——Protobuf详细入门
C#实现定义一套中间SQL可以跨库执行的SQL语句(案例详解)
Nebula importer data import practice
C # implementation defines a set of SQL statements that can be executed across databases in the middle of SQL (detailed explanation of the case)
To sort out messy header files, I use include what you use