<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<style>
* {
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
}
body{
display: flex;
align-items: center;
justify-content: center;
}
td {
width: 20%;
text-align: center;
}
</style>
</head>
<body>
<table border="1px" cellspacing="0" width="80%" style&#
表格(colspan(列合并)+rowspan (行合并))+css (水平垂直居中) 同时给html与body设置100%
最新推荐文章于 2022-07-20 14:51:31 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)