首页 > 解决方案 > 如何在一个表格数据中更改两种字体大小?

问题描述

我想在一个块中有两种不同的字体大小。我怎样才能使“猎鹰家族”大小为 20pt 和“猎鹰家族来自……”大小为 15pt 并且仍然是一个表格数据。

<html>
  <head>
  <table border= "20" borderColor = "#71a14d" bgcolor= "#d1e83f">
     <td colspan="7" style="font-size:20pt"> The Falcon Family</br>
     The Falcon fam is from Russia they are nomads traveling through out the world.</td>
  </table>
  </body>
</html>

标签: htmlrepl.it

解决方案


只需将第二部分包装在一个跨度中并添加样式

  <table border= "20" borderColor = "#71a14d" bgcolor= "#d1e83f">
  <tr>
     <td colspan="7" style="font-size:20pt"> The Falcon Family<br>
     <span style="font-size:15pt"> The Falcon fam is from Russia they are nomads traveling through out the world.</span></td>
     </tr>
  </table>
 


推荐阅读