html - 如何在一个表格数据中更改两种字体大小?
问题描述
我想在一个块中有两种不同的字体大小。我怎样才能使“猎鹰家族”大小为 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>
解决方案
只需将第二部分包装在一个跨度中并添加样式
<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>
推荐阅读
- django - 需要在 Django 管理界面上显示用户计数其他数据计数
- xml - XML 语法检查 DTD 文件时发生错误
- xamarin - 从 Xamarin 跨平台连接到 Oracle 数据库
- c# - 在 Xamarin 表单和 ASP.NET MVC 5 (.NET 4.6.1) 项目之间共享代码
- java - 带有完整构造函数调用的方法引用作为 Java 中的 lambda 表达式
- c++ - 使用 set 方法时,protobuf 成员的地址会改变吗?
- macos - mac mini 进入睡眠状态后如何让 ngrok 保持活力
- c - 如何在 Windows 10 上安装 dr memory
- sql-server - 出现错误:MERGE 语句在 MERGE 语句中指定的某些(但不是全部)操作上具有 INSTEAD OF 触发器
- php - 当日志显示已将请求重写为 php 文件时,Apache 仍会加载测试页面