首页
CSS
CSS 字体
字体简写
试用:字体简写属性
运行 ❯
获取您
的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> p.a { font: 20px Arial, sans-serif; } p.b { font: italic small-caps bold 12px/30px Georgia, serif; } </style> </head> <body> <h1>The font Property</h1> <p class="a">This is a paragraph. The font size is set to 20 pixels, and the font family is Arial.</p> <p class="b">This is a paragraph. The font is set to italic, small-caps and bold, the font size is set to 12 pixels, the line height is set to 30 pixels, and the font family is Georgia.</p> </body> </html>