简体   繁体   English

html表增加td内文本的高度

[英]html table increase height of a text inside td

  • Is it possible to increase font-size of a <td> content vertically only?是否可以仅垂直增加<td>内容的font-size
  • I want to increase the only height of texts which are inside <table> <td> 's我想增加<table> <td>内文本的唯一高度

CSS3 transform has the scale function for it. CSS3 变换有它的缩放功能。 The following code is a working example.以下代码是一个工作示例。

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <style type="text/css"> 
        td {
      display: inline-block;
      font-size: 65px;
      transform: scale(.5, 1);
      border: 1px solid black;
    }
    </style>
</head>
<body>
<table>
    <td>aaaaaa</td>
</table>
</body>
</html>

You can make it td a hover effect by adding this line您可以通过添加此行使其成为悬停效果

td:hover{
        font-size: 100px;
    }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM