font-style

mac2022-06-30  33

font-style font-style:normal|italic|oblique normal:指定文本字体式为正常的字体 italic:斜体 oblique:斜体,不用记这个.

代码如下:

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> h3 { font-style: italic; } </style> </head> <body> <h3>H3修改后的斜体字体</h3> <h4>H4的默认字体</h4> </body> </html>

效果如下:

 

最新回复(0)