blog: 添加文章

This commit is contained in:
xugaoyi 2022-06-29 09:36:22 +08:00
parent 9eee1524a0
commit 555d2fdf41
1 changed files with 27 additions and 0 deletions

View File

@ -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%;
}
```