使用 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>