可以使用 类似HTML标签的标签 实现这一点。 以下是一个简单示例:digraph g{ a[label=< <FONT POINT-SIZE="20">Bigger</FONT> and <FONT POINT-SIZE="10">Smaller</FONT> >]; } 输出: