当前位置:网站首页>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>
边栏推荐
- Caché JSON 使用JSON适配器
- Nebula Importer 数据导入实践
- 大佬们,求助一下,我用mysql cdc 2.2.1(flink 1.14.5)写入kafka,设置
- IBM WebSphere MQ retrieving messages
- 神经网络物联网应用技术学什么
- Summary and sorting of 8 pits of redis distributed lock
- Technology sharing | interface testing value and system
- 完善的js事件委托
- 建立自己的网站(15)
- 使用canal配合rocketmq监听mysql的binlog日志
猜你喜欢
[release] a tool for testing WebService and database connection - dbtest v1.0
神经网络物联网应用技术学什么
2022 ByteDance daily practice experience (Tiktok)
Use canal and rocketmq to listen to MySQL binlog logs
Wireshark网络抓包
BI技巧丨权限轴
“只跑一趟”,小区装维任务主动推荐探索
node_exporter部署
Scala basic tutorial -- 13 -- advanced function
使用canal配合rocketmq监听mysql的binlog日志
随机推荐
Go microservice (II) - detailed introduction to protobuf
Don't just learn Oracle and MySQL!
奥迪AUDI EDI INVOIC发票报文详解
Process of manually encrypt the mass-producing firmware and programming ESP devices
2014 Hefei 31st youth informatics Olympic Games (primary school group) test questions
876. 链表的中间结点
26. 删除有序数组中的重复项 C#解答
Shell 编程核心技术《四》
The 15th youth informatics competition in Shushan District in 2019
Is the securities account opened by qiniu safe?
Have you guys ever used CDC direct Mysql to Clickhouse
[uniapp] uniapp development app online Preview PDF file
Scala basic tutorial -- 18 -- set (2)
2022 ByteDance daily practice experience (Tiktok)
神经网络物联网是什么意思通俗的解释
[mathematical basis of machine learning] (I) linear algebra (Part 1 +)
2022健康展,北京健博会,中国健康展,大健康展11月13日
从实时应用角度谈通信总线仲裁机制和网络流控
Wireshark网络抓包
To sort out messy header files, I use include what you use