html - 在 transform=rotate () 上添加了不必要的/幽灵填充
问题描述
旋转table
和td
元素时,添加了一个我无法删除的未知填充。盒子模型不显示任何填充。请帮我修复它。
下面是我的代码,它导致旋转时出现未知填充
table {
transform: rotate(270deg);
direction: rtl;
height: 400px;
}
.peopleNames {
width: 400px;
}
.peopleNames h2 {
text-align: center;
}
.innerDiv th,
td {
text-align: center;
padding-right: 50px;
transform: rotate(90deg);
}
<div class="peopleNames">
<h2>Folow the data to know the requirement</h2>
<div class='innerDiv'>
<table>
<thead>
<tr>
<th>
<h1>1</h1>
</th>
<th>
<h1>2</h1>
</th>
<th>
<h1>3</h1>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jill do the work within given time</td>
<td>Smith is the best </td>
<td>50min is all you got</td>
</tr>
</tbody>
</table>
</div>
<button>Search</button>
</div>
解决方案
推荐阅读
- forms - MS Access 表>查询>表单设计问题
- sql - SQL 80% 的离散分布百分位
- ffmpeg - 如何将爱奇艺的 JSON 转换为常规 m3u8
- jupyter-notebook - Huggingface BertForMaskedLM 在 90 多次迭代后失败
- c++ - 为什么cuda内核可以访问主机内存?
- express - Expressjs 收听后发送内容
- python - 为什么 os.stat().st_size 为 dir 返回 0?
- javascript - 将 2d 文本剪辑到 3d 对象 WebGl
- amazon-web-services - 私有子网中具有公共 IP 的实例可以接收互联网流量吗?
- python - Python:试图抓取 Jumia 笔记本电脑网站