当前位置:网站首页>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>
边栏推荐
- 数组中的第K个最大元素
- Shell 編程核心技術《四》
- Cache é JSON uses JSON adapters
- Nebula Importer 数据导入实践
- Shell programming core technology "three"
- 2022健康展,北京健博会,中国健康展,大健康展11月13日
- In flinksql, in addition to data statistics, is the saved data itself a state
- Unity编辑器扩展C#遍历文件夹以及子目录下的所有图片
- 升级智能开关,“零火版”、“单火”接线方式差异有多大?
- Leetcode ransom letter C # answer
猜你喜欢

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

Mxnet implementation of googlenet (parallel connection network)

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

Go microservice (II) - detailed introduction to protobuf

Use canal and rocketmq to listen to MySQL binlog logs

2022CoCa: Contrastive Captioners are Image-Text Fountion Models

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

Wireshark网络抓包

每日一题(2022-07-02)——最低加油次数

Nebula importer data import practice
随机推荐
Is the securities account opened by qiniu safe?
Summary and sorting of 8 pits of redis distributed lock
建立自己的网站(15)
测试工程师如何“攻城”(上)
Guys, for help, I use MySQL CDC 2.2.1 (Flink 1.14.5) to write Kafka and set
Principle and application of ThreadLocal
[mathematical basis of machine learning] (I) linear algebra (Part 1 +)
Scala basic tutorial -- 13 -- advanced function
2022健康展,北京健博会,中国健康展,大健康展11月13日
Torchdrug tutorial
[uniapp] uniapp development app online Preview PDF file
In flinksql, in addition to data statistics, is the saved data itself a state
【OpenCV入门到精通之九】OpenCV之视频截取、图片与视频互转
2021 Hefei informatics competition primary school group
《看完就懂系列》字符串截取方法substr() 、 slice() 和 substring()之间的区别和用法
测试工程师如何“攻城”(下)
[发布] 一个测试 WebService 和数据库连接的工具 - DBTest v1.0
函数式接口
prometheus安装
[release] a tool for testing WebService and database connection - dbtest v1.0