使用 CSS 设置字体的简写属性
font 属性用作简写来指定其他字体属性(例如字体系列、尺寸、样式等)的数量。
示例
可尝试运行以下代码,了解如何使用 font 属性
<html> <head> </head> <body> <p style = "font:italic small-caps bold 13px georgia;"> Applying all the properties on the text at once. </p> </body> </html>
广告
font 属性用作简写来指定其他字体属性(例如字体系列、尺寸、样式等)的数量。
可尝试运行以下代码,了解如何使用 font 属性
<html> <head> </head> <body> <p style = "font:italic small-caps bold 13px georgia;"> Applying all the properties on the text at once. </p> </body> </html>