blog: 添加文章
This commit is contained in:
parent
9eee1524a0
commit
555d2fdf41
|
|
@ -0,0 +1,27 @@
|
||||||
|
---
|
||||||
|
title: CSS给table的tbody添加滚动条
|
||||||
|
date: 2022-06-29 09:34:23
|
||||||
|
permalink: /pages/55f894/
|
||||||
|
categories:
|
||||||
|
- 页面
|
||||||
|
- CSS
|
||||||
|
tags:
|
||||||
|
-
|
||||||
|
author:
|
||||||
|
name: xugaoyi
|
||||||
|
link: https://github.com/xugaoyi
|
||||||
|
---
|
||||||
|
|
||||||
|
```css
|
||||||
|
table tbody {
|
||||||
|
height: 200px;
|
||||||
|
overflow-y: auto;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
table thead,
|
||||||
|
tbody tr {
|
||||||
|
display: table;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue