当前位置:网站首页>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>
边栏推荐
- 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
- 数组中的第K个最大元素
- Learning path PHP -- phpstudy "hosts file does not exist or is blocked from opening" when creating the project
- 千万不要只学 Oracle、MySQL!
- Is Guoyuan futures a regular platform? Is it safe to open an account in Guoyuan futures?
- 长城证券开户安全吗 买股票怎么开户
- [mathematical basis of machine learning] (I) linear algebra (Part 1 +)
- 2022-07-04:以下go语言代码输出什么?A:true;B:false;C:编译错误。 package main import 'fmt' func
- 基于lex和yacc的词法分析器+语法分析器
- Unity编辑器扩展C#遍历文件夹以及子目录下的所有图片
猜你喜欢
大div中有多个div,这些div在同一行显示,溢出后产生滚动条而不换行
Bi skills - permission axis
The 300th weekly match of leetcode (20220703)
OpenCV的二值化处理函数threshold()详解
从实时应用角度谈通信总线仲裁机制和网络流控
BI技巧丨权限轴
性能优化之关键渲染路径
Learning path PHP -- phpstudy "hosts file does not exist or is blocked from opening" when creating the project
Torchdrug tutorial
Build your own website (15)
随机推荐
The 15th youth informatics competition in Shushan District in 2019
Shell 编程核心技术《二》
One question per day (2022-07-02) - Minimum refueling times
Scala basic tutorial -- 20 -- akka
技术分享 | 接口测试价值与体系
Build your own website (15)
函数式接口
In flinksql, in addition to data statistics, is the saved data itself a state
6.26cf simulation match B: solution to array reduction problem
Lex and yacc based lexical analyzer + parser
Perfect JS event delegation
Wechat reading notes of "work, consumerism and the new poor"
Nebula importer data import practice
2014合肥市第三十一届青少年信息学奥林匹克竞赛(小学组)试题
请教一下 flinksql中 除了数据统计结果是状态被保存 数据本身也是状态吗
Shell programming core technology "I"
Li Chi's work and life summary in June 2022
Is the securities account opened by qiniu safe?
Oracle with as ORA-00903: invalid table name 多表报错
repeat_P1002 [NOIP2002 普及组] 过河卒_dp